Page MenuHomePhabricator

Allow anchor (<a>) tags in wikitext
Closed, ResolvedPublic

Description

Currently, Sanitizer.php bans the use of an <a> tag, even though it's possible to mostly replicate the effect of an <a> tag using internal or external link markup (e.g., "[[foo]]" or "[http://example.com foo]"). However, wikimarkup does not allow for certain attributes to be passed to the rendered <a> tag, for example title="" and target="".

Obviously a whitelist/blacklist would be needed to allow or disallow certain attributes from being used, however I believe some of this sanitation is already built in to MediaWiki or could easily be as necessary. Allowing the <a> tag has a number of benefits and it's the usual practice to allow the HTML equivalents of markup that's allowed in wikitext.


Version: unspecified
Severity: minor

Details

Reference
bz26727

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:22 PM
bzimport set Reference to bz26727.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 18460 ***
  • This bug has been marked as a duplicate of bug 33886 ***