Extension:SemanticHTML
From MediaWiki.org
![]() |
WARNING: The code or configuration described here poses a major security risk.
Site administrators: You are advised against using it until this security issue is resolved. Problem: Vulnerable to Cross-site scripting attacks, because it passes user input directly to the browser. This may lead to user accounts being hijacked, among other things. Solution: strictly validate user input and/or apply escaping to all characters that have a special meaning in HTML TK-999 (talk) 21:18, 23 May 2013 (UTC) |
SemanticHTML Release status: beta |
|||
---|---|---|---|
Implementation | Tag | ||
Description | Adds support for HTML4 phrase elements plus the HTML5 time element | ||
Author(s) | Ben Ward | ||
MediaWiki | 1.13, possibly later versions, too | ||
Database changes | no | ||
License | No license specified | ||
Download | Project page Download snapshot Git [Help] |
||
Example | microformats.org | ||
|
|||
|
|||
Translate the SemanticHTML extension if possible |
|||
Check usage and version matrix; code metrics |
This placeholder is to ensure that SemanticHTML shows up in the Extension Matrix. The actual homepage is the GitHub project page.
The SemanticHTML extension adds support for HTML4 phrase elements plus the HTML5 time element to MediaWiki since MediaWiki strips out these descriptive elements by default.
This extension adds support for:
- abbr
- acronym
- dfn
- kbd
- samp
- time
- var
Though this extension's name may suggest otherwise, this is not an extension to Semantic MediaWiki.
Installation[edit | edit source]
- Download the files from GitHub as tar.gz or zip.
- Create a directory
SemanticHTML
in your$IP/extensions
directory. - Extract the files to this
$IP/extensions/SemanticHTML
directory. - Add
require_once( "$IP/extensions/SemanticHTML/SemanticHTML.php" );
- Installation can now be verified through Special:Version of your wiki.