What steps will reproduce the problem?
1. var html = '<span><div></div></span>';
2. var options = {allowedAttributes: true, allowEmpty: ['div', 'span'], format:
true, formatIndent: 0};
3. $.htmlClean(html, options)
What is the expected output? What do you see instead?
Expected: "<span>
<div>
</div>
</span>"
Actual: "<span></span>
<div>
</div>"
Note that the inner div got moved from inside the span to outside it.
It's worth noting though that this is an improvement over 1.3.1, which would
completely remove the inner div.
What version of the product are you using? On what operating system?
1.4.0, Chrome, Linux
Original issue reported on code.google.com by machineg...@gmail.com on 16 Jan 2014 at 6:31
Original issue reported on code.google.com by
machineg...@gmail.com
on 16 Jan 2014 at 6:31