Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Line Breaks
- Search for legal and illegal forms of HTML Line Break Tag. Open tag, closing tag, self-closing tag. Allow whitespace before and after 'br' Tag ID. Allow whitespace before opening Tag Delimiter (<) and after closing Tag Delimiter (>).
- Wikimedia Tag Parser has funny rules for an HTML Line Break Tag. No matching Begin/End tags (<br></br>). Either Begin or End tag alone counts as a Line Break Tag. After normal start to tag (<br or </br), almost anything goes until closing '>'. Including a text Line Break!
- \s*<\/?br(\s*[^|{}]*)?>\s*
- Replace HTML Line Break Tag with Wikimedia {{break}} template. Replacement string includes a space before opening Template Delimiter ({{) and after closing Template Delimiter (}}).
- {{break | 1}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement