HTML Purifier doesn't like fckeditor's use of the "name" attribute for anchors

dogbertdp - October 14, 2009 - 18:10
Project:HTML Purifier
Version:6.x-2.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Has anyone gotten fckeditor 2.6 anchors to work with HTML Purifier? I have set EnableID to "Yes".

If I create an anchor using the anchor button, fckeditor creates markup similar to the following:

<a name="testanchor"></a>

which HTML Purifier filters to:

<a></a>

If I go into source and change <a name= to <a id=, the anchor works, but my users won't know to do that (also fckeditor strips that change out if you edit the node).

Has anyone figured out how to either get HTML Purifier to accept "name" or fckeditor to use the "id" attribute instead of "name"?

Thanks,
Mike Hays

#1

ezyang - October 22, 2009 - 15:42
Status:active» postponed (maintainer needs more info)

Try upgrading your HTML Purifier version. With Attr.EnableId set to on, a name="" attribute get preserved for me.

#2

kiluminati - October 23, 2009 - 08:09

I have the same problem. "EnableId" is set to on, I added "name" to "AllowedAttributes". Both config options were made through the GUI.

#3

promes - October 23, 2009 - 16:15

I tried to change my setting for version 5-1.4, but I can't find the correct settings.
I did set the following GUI options:
Enable allowed specification: set
Allowed specification: name (this was added)
I tried both set and unset of: Allow the ID attribute in HTML

Can anyone help me out?

 
 

Drupal is a registered trademark of Dries Buytaert.