With htmlpurifier enabled, format_text removes the 'id' attribute. This causes a problem for the ouwiki module, which uses id to store data associated with the user content.
I propose to change format_text to add a new option
allowid = true (default false); allow the id attribute to be preserved even when cleaning is applied
If set, this will pass through eventually to HTMLPurifier as
$config->set('HTML.EnableAttrID', true)
(When htmlpurifier is not enabled, there is no need to pass it through to the 'old' cleaning method, as that one does not remove id attribute anyway)
Petr has agreed this is a reasonable approach and we can submit a PULL request for 2.0.3, subject to review.
- will help resolve
-
MDL-25695 Toc in Wiki
-
- Closed
-