xerofun/owaspantisamy

Antisamy is replacing '&' charcarter to '&'

Closed this issue · 4 comments

What steps will reproduce the problem?
1. Enter text 'Hello&Bye'
2. Antisamy replaces the '&' charater in the input string
3.

What is the expected output? What do you see instead?
Expected Output - 'Hello&Bye'
Actual Output - 'Hello&Bye'

What version of the product are you using? On what operating system?
antisamy1.3, Windows XP

Please provide any additional information below.


Original issue reported on code.google.com by rajat...@gmail.com on 1 Oct 2009 at 12:09

Thanks for the report. Unfortunately, I don't think I can justify outputting 
known
erroneous data. Use of the ampersand entity should have zero effect on the 
display of
the data. Can you elaborate on why this is a problem? Your use case may inspire 
me.

Original comment by arshan.d...@gmail.com on 15 Oct 2009 at 3:47

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

Original comment by arshan.d...@gmail.com on 24 Nov 2009 at 3:23

  • Changed state: WontFix
In my application, we store the data entered by the user (after validating with
antisamy) in the DB. and then when we display is back , the user is '&' instead
of '&' which looks bad in the UI (as the data is populated from DB)

If this could be configurable that would be of great advantage.
One more thing, i couldn't find details about the policy file any where.

Original comment by rajat...@gmail.com on 24 Nov 2009 at 3:52

Hi Guys,

This is a real issue for us as well. Is there no workaround for this?

Thanks

Original comment by prashant...@pixalsoft.com on 22 Dec 2012 at 5:57