If you use HTML Purifier to validate the resulting document, you should know that this module strips anchors by default. That is, you won't be able to follow a link like "#my_anchor", because the code '<a name="myname"></a>' will be reduced to '<a></a>'.
To enable anchor support - add the following line to the Purifier config:
$myPurifier->set('Attr.EnableID', true);
where instead of $myPurifier you use whatever variable name you use in your code.
Applies to: HTML Purifier
Comments