Page MenuHomePhabricator

Improve HTML tag insertable regex in MediaWiki insertable
Open, LowPublic

Description

Currently the HTML tag insertable regex in MediaWiki insertable has: /<\/?[a-z]+>/. This matches the tags only if they don't have an HTML attribute and highlight the starting tag and ending tags separately.

We can discuss and use an improve version that overcomes these limitations,

Possible regex: /(?<open><([a-z][a-z0-9]*)\b[^>]*>).*?(?<close><\/\2>)/

Event Timeline

abi_ created this task.Feb 13 2020, 6:30 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 13 2020, 6:30 AM
abi_ triaged this task as Low priority.Feb 13 2020, 6:31 AM
abi_ updated the task description. (Show Details)