Extension:SaferHTMLTag

MediaWiki extensions manual
SaferHTMLTag
Release status: stable
Implementation Tag , User rights
Description Allows only sysops and certain user groups to edit pages containing the ‎<html> tag.
Author(s) Antoine Mercier-Linteau (Tinsstalk)
Latest version 0.4 (2024-02-19)
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.35+
License GNU General Public License 2.0 or later
Download
README
edit-html

The SaferHTMLTag extension prevents edition of pages that contain the ‎<html> tag by unauthorized users and groups.

Installation

edit
  • Download, extract and place the file(s) in a directory called SaferHTMLTag in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'SaferHTMLTag' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Enabling for a group

edit

To enable for a group (eg: sysops), add the following to you LocalSettings.php file:

$wgGroupPermissions['sysop']['edit-html'] = true; // Enable in-wiki HTML editing for sysops.

See also

edit