Is this expected behavior to have text between <tr></tr> or <ul></ul> ?

26 views
Skip to first unread message

songji...@gmail.com

unread,
Sep 21, 2018, 2:33:11 PM9/21/18
to OWASP Java HTML Sanitizer Support
Hi,

I was using r239 which give some odd behavior when have text between some tags. So I also testing with some newer release like 20170329.1 and 20180219.1.

Input:
String s = "<table><tbody><tr><td>Colleague Student</td></tr>&nbsp;&nbsp;&nbsp;&nbsp;<tr><td>Colleague requiring service :</td><td>Agarwal Rakesh B</td>&nbsp;&nbsp;&nbsp;&nbsp;</tr></tbody></table>";

 Output: 20170329.1
<table><tbody><tr><td>Colleague Student</td></tr></tbody></table>    <table><tbody><tr><td>Colleague requiring service :</td><td>Agarwal Rakesh B</td></tr></tbody></table>  

Output: r239
<table><tbody><tr><td>Colleague Student</td></tr></tbody></table>    <tr><td>Colleague requiring service :</td><td>Agarwal Rakesh B</td><td>    </td></tr>

Each of the out put looking right?
Reply all
Reply to author
Forward
0 new messages