So If my WYSIWYG editor causes an image to go in a header tag, or a non-tech savvy user mistakenly does so, the table of contents uses that as a header, breaking its own structure. Can you add an option in the module to strip all child elements from the h elements? This should be fairly easy and effective, I just don't know enough php.

would it be getting an array of "<"*">"*"", replacing them with ""?

Comments

AlexisWilke’s picture

Status: Active » Closed (duplicate)

Hi whatsnewsisyphus,

This is a duplicate of #542780: Preserving HTML header attributes is causing side-effects. which is fixed and will be in the -dev within 12h.

Note that to remove tags in PHP you have strip_tag(). Much easier and probably a lot faster than a preg_replace().

Thank you.
Alexis