HTML Tags demo
Jump to navigation
Jump to search
A demonstration of the HTML Tags extension:
1. Normal behavior
- Wikitext: <htmltag tagname="a" href="http://google.com" b="c">This is a link to Google.</htmltag>
- Result: This is a link to Google.
2. Unsupported attribute
- Wikitext: <htmltag tagname="a" href="http://google.com" b="c" unsupportedattrib="somevalue">This is a link to Google.</htmltag>
- Result: This is a link to Google.
3. No "tagname" value specified
- Wikitext: <htmltag href="http://google.com" b="c">This is a link to Google.</htmltag>
- Result: The attribute "tagname" must be set for this tag.
4. Unsupported "tagname" value
- Wikitext: <htmltag tagname="div" b="c">This is a div.</htmltag>
- Result: The tag name "div" is not supported for <htmltag>.
5. An attempt at JavaScript injection
- Wikitext: <htmltag tagname="a" href="javascript:window.alert('danger!');" b="c">This link will say something!</htmltag>
- Result: This link will say something!
6. AptURL links
- Wikitext: <htmltag tagname=a href="apt://fortune,lolcat,gksu,toilet,bb,libaa-bin?refresh=yep">Install some programs.</htmltag>
- Result: Install some programs.