You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HTML 4.01, the contents of caption must be inline elements; h2 is a block element so it can't be allowed.
As for why we lose all of the table structure, I haven't investigated closely, but I suspect what may be happening is that h2 is triggering us to insert closing tags for the table. The subsequent open/close table tags are then dropped as not valid and then you lose the formatting.
There might be an easy hack to work around this particular case but I am not sure what a general fix might be. Perhaps try setting Core.LexerImpl to PH5P?
Hello, on this example HTMLPurifier 4.9.2 returns bad output html:
Output html is:
But if I remove h2 tag (change caption to
<strong>caption</strong>
) everything OK.Is this a bug or may be I just not turn on some settings?
The text was updated successfully, but these errors were encountered: