Github mirror of MediaWiki extension HTMLTags - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
i18n
.gitignore
.gitreview
COPYING
Gruntfile.js
HTMLTags.php
HTMLTags_body.php
README
composer.json
package.json

README

HTML Tags extension for MediaWiki.

This extension defines a tag function, <htmltag>, that allows users to place
HTML tags on the page that may not be otherwise allowed by the MediaWiki
parser.

For more information, see the extension homepage at:
https://www.mediawiki.org/wiki/Extension:HTML_Tags

== Overview ==

<htmltag> can only display tags and attributes that are allowed for that wiki.
Tags and attributes are allowed through the use of the global variable
$wgHTMLTagsAttributes in LocalSetting.php. To allow the use of the <a> tag,
for instance, with the attributes 'href' and 'class', you would add the
following to LocalSettings.php:

$wgHTMLTagsAttributes['a'] = array( 'href', 'class' );

A user could then display an <a> tag on the wiki, with those attributes, with
text like the following:

<htmltag tagname="a" href="http://example.com" class="link">See here</htmltag>

Calling <htmltag> with a tag name that is not allowed will result in an error
message; calling it with an attribute that is not allowed will simply lead to
the attribute being ignored.

== License ==

HTML Tags is available under the GNU Public License.
 
== Authors ==

HTML Tags was written by Yaron Koren.