HTML restriction/cs

MediaWiki omezuje použití HTMLve výchozím nastavení. Jsou povoleny pouze některé ve wikitextových HTML prvcích a atributy. Nezpracované sekce HTML obklopené značkou "html" lze povolit pomocí možnosti. Kód je k dispozici na includes/parser/Sanitizer.php.

The Wikimedia Foundation's internal website allows full use of HTML. Their other websites (see complete list here) do not. A request to allow full use of HTML was rejected in 2005.

There are several extensions that allow for the inclusion of raw HTML. Here are the extensions that appear to be safe:


 * - allows pre-defined HTML snippets with $wgRawHtml=false.
 * - allows for adding HTML from a set of tags and attributes defined in the wiki's settings.
 * - adds 'Secret key' protection for html sections.
 * - allows raw HTML in specified namespaces
 * - allows for defining HTML- and JavaScript-based "widgets", with optional parameters.