Closed (duplicate)
Project:
Table of Contents
Version:
6.x-3.5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2010 at 18:17 UTC
Updated:
28 Apr 2010 at 22:54 UTC
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
Comment #1
AlexisWilke commentedHi 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