Im not a programmer, but I do need anchors to work on my site. Currently with HTML purifier, this isnt possible as its stripping the name attribute in the html output. I have EnableId on and have cleared my cache to no avail. I have looked all over the net, I cant find a solution that doesnt involve sifting through large amounts of Jargon. Could you please provide a lamers guide to fixing this issue? I dont have large amounts of time to figure this out and if neccesary Im willing to pay to get this done.
From what I can tell, many have this problem and it would be nice to see something friendly and conclusive to fix this.
Please help!
regards,
Michael
Comments
Comment #1
ezyang commentedSet the HTML.Attr.Name.UseCDATA directive to be on.
Comment #3
mcartmel commentedHi,
In advanced options, I've enabled UseCDATA and EnableID, but the name attribute is still being stripped. Can you clarify what other options need to be set to allow anchors?
Comment #4
ezyang commentedHave you set any other configuration options?
Comment #5
agentili commentedI have the same problem HTMLpurifier strips the anchor name attribute. I tried to configure HTMLpurifier from the Site configuration › Input formats › Full HTML >Advanced configuration options and set the Attr.Name.UseCDATA to yes but the anchor name get stripped.
Comment #6
alexpottI had this problem too. I fixed it by clearing the site's caches after I set Attr.Name.UseCDATA to yes then the name attribute is allowed.
Basically it seems that the moment you make a change to html purifier's config you need to clear it's cache (this can be done of the it's settings form).
Comment #7
ezyang commentedReclassifying bug. It's not clear to me if it's better to automatically clear the cache on a configuration change, or just tell the user that old entries won't automatically get updated. Clearing the cache could cause performance problems.
Comment #8
ezyang commentedBumped milestone, probably won't fix this for 6.x.
Comment #9
heddnThis is resolved by a note in the text filter. See: http://drupalcode.org/project/htmlpurifier.git/commit/7524be