Table with multiple columns are converted to multiple table

24 views
Skip to first unread message

Rasmita Mahapatra

unread,
May 21, 2018, 5:25:57 AM5/21/18
to OWASP Java HTML Sanitizer Support
This is the sample input 
<html>
<head>
    
</head>
<body id="mimemail-body" class="eblaster-blast">
<table>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table>
<br clear=3D"all"><br>-- <br>
<div class="xxx_signature">Pozdrasaav,<br><br>Boasarko ssdsd<br>+22222<br>
</div>
</body>
</html>

After Sanitation its converted into 
<html class="">
<head></head>
<body>
<div class="">
<div>
<div class="">
<p></p>

<table style="width:100%"><tbody><tr><td><p>
</p><table></table>
  <table><tbody><tr></tr></tbody></table>
</td><th>Month</th></tr></tbody></table>
<table><tbody><tr><th>Savings</th></tr></tbody></table>
  
  <table><tbody><tr></tr></tbody></table>
<table><tbody><tr><td>January</td></tr></tbody></table>
<table><tbody><tr><td>$100</td></tr></tbody></table>  

<br><br>-- <br>
<div class="xxx_signature">Pozdrasaav,<br><br>Boasarko ssdsd<br>+22222<br>
</div>
</div></div><div class=""></div></div>
</body>
</html>
The table is changed into multiple tables. Is this a bug in the sanitizer?
Reply all
Reply to author
Forward
0 new messages