Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Antisamy stripping < and all the charcters after it. #541

Open
Sruthi0989 opened this issue Dec 26, 2024 · 0 comments
Open

Antisamy stripping < and all the charcters after it. #541

Sruthi0989 opened this issue Dec 26, 2024 · 0 comments

Comments

@Sruthi0989
Copy link

Sruthi0989 commented Dec 26, 2024

We have a requirement to use < symbol in text that we pass to antisamy. But antisamy scan operation is removing the the text added after < symbol.
I have noticed that the antisamy scan is is not encoding symbol < as <, like other symbols, which might be the reason for the issue.

Is there a way we can preserve the text after < and remove the script tag which might cause the issue.

I have tried adding the below content to antisamy.xml but still i see the text getting truncated after <:
image
Please refer the attached antisamy file used and the java code.
Antisamy.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant