pscmsc1007 / owaspantisamy

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

How to handle </br> tags? #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. AntiSamy 1.4.4
2. Try to parse
"Not yesterday.</br></br>But, we got one the other day.</br></br>But we only 
resolved the www. issue yesterday.</br></br>"
3. XML config includes:
<tag name="br" action="validate" />

The </br> tags are removed, because, yes they make no sense. However, they do 
make sense to browsers and they should be rendered correctly after being 
filtered too.

I don't know how this crazy HTML got into the content. I assume it was copying 
and pasting from some text editor into tinyMCE. I don't want to have to go 
through the database and try to fix HTML. Is there any way to make AntiSamy 
understand these tags?

Original issue reported on code.google.com by vikstr...@gmail.com on 30 Jun 2011 at 4:51

GoogleCodeExporter commented 8 years ago
Try action="truncate"?

Original comment by arshan.d...@gmail.com on 23 Aug 2011 at 10:23

GoogleCodeExporter commented 8 years ago
No response from reporter.

Original comment by arshan.d...@gmail.com on 14 Sep 2011 at 8:54