jeff377 / owaspantisamy

Automatically exported from code.google.com/p/owaspantisamy
0 stars 0 forks source link

<br/> tags are converted to <br> when useXHTML is true #156

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the default antisamy.xml policy file and ensure that the 'useXHTML' 
directive is set to 'true'
2. Sanitize the following: '12<br/>34'

What is the expected output? 
Expected output would be the same as the input as it is already XHTML, i.e. 
'12<br/>34'

What do you see instead?
The actual output is not XHTML and is HTML instead: '12<br>34'

What version of the product are you using? 
Version 1.4.4

On what operating system?
Windows 7

Please provide any additional information below.
This also occurs with the <hr/> tag as well.

Original issue reported on code.google.com by itsthel...@gmail.com on 21 Feb 2013 at 10:21