Needs review
Project:
Special menu items
Version:
7.x-2.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2012 at 17:48 UTC
Updated:
8 Mar 2018 at 09:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
coxw commentedI agree, I'm not sure the attributes should be stripped since even accesskey is a global attribute.
Comment #1.0
coxw commentedbetter code formatting
Comment #2
energee commentedFixes preg_replace
Comment #3
energee commentedComment #4
matpoppl commentedHello.
The purpose of the preg_replace is to remove unwanted attributes in non-anchor tags. I think that it would be better to drop preg_replace and use array_diff_key a step before the attributes are converted to string.