Comments (5)
Hi @xiangyi-chen. Before someone takes a look at this, could you provide an input and output example?
For me at least, it's difficult to understand your current input format.
from antisamy.
嗨@ xiangyi-chen。在有人对此进行介绍之前,您能提供一个输入和输出示例吗?
至少对我来说,很难理解您当前的输入格式。
hi,@sebastián Passaro。
E.g:The input format is: hello>,<hello
The output format becomes: hello>,<hello
<is escaped into ><
So I want to know what configuration can allow these two special symbols
And using
from antisamy.
from antisamy.
@xiangyi-chen, I'm sorry but it seems I didn't catch again which the input is. I've tired on the most recent and 1.4.4 versions and the output is the same for what I understood the input was.
This is the code I ran:
String input = "hello>,<hello";
CleanResults cr = as.scan(input, policy, AntiSamy.DOM);
System.out.println(cr.getCleanHTML());
And my output on the versions I tried is hello>,
. I used the slashdot policy on 1.4.4 but It changes nothing.
I suggest to copy and paste the code you're using as I did, so I can reproduce this issue the same way as you. Also because on your previous messages the characters are sometimes encoded and sometimes not, so it's inconsistent and I don't know what to use as input.
from antisamy.
We are unable to reproduce this bug, and the original poster hasn't clarified their request in over a year, so closing this.
from antisamy.
Related Issues (20)
- Improve Unit Test Coverage
- how to edit the antisamy.xml to support the css-style "-webkit-border-radius" or "-moz-border-radius" HOT 6
- require-closing-tags is not supported by antsamy.xsd HOT 5
- Change in behavior between 1.6.4 and 1.6.5 for getErrorMessages HOT 7
- Commit details for CVE-2022-28366? HOT 4
- Remove all deprecated APIs/features in prep for 1.7.0 release HOT 1
- ASHTMLSerializer uses deprecated HTMLSerializer. Replace with TrAX.
- AntiSamy converting single quotes to double quotes for font-family which is causing issue while rendering HOT 6
- AntiSamy not detecting XSS for anchor tag HOT 10
- CssHandler test case failure on Windows HOT 5
- Incorrect 'Contributing' link on OWASP wiki page HOT 1
- Javadoc cleanup
- 2 enhancement HOT 2
- 1 enhancement with api HOT 2
- CVE-2022-24891 HOT 7
- Removing Xerces dependency? HOT 3
- Does Antisamy has support for custom css properties " --* " and css-function " var() " and how to define it in the antisamy policy file? HOT 10
- Enabled noopenerAndNoreferrerAnchors policy drops nofollow HOT 7
- Covering all cases of "rel" attribute in "anchor" tag is quite verbose HOT 3
- Investigate replacing Batik CSS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antisamy.