Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Sanitizer.php File Reference

HTML sanitizer for MediaWiki. More...

Classes

class  Wikimedia\Parsoid\Core\Sanitizer
 HTML sanitizer for MediaWiki. More...
 

Detailed Description

HTML sanitizer for MediaWiki.

Extended by Parsoid to be a general token sanitizer. Strips out (or encapsulates) unsafe and disallowed tag types and attributes. Should run last in the third, synchronous expansion stage.

This code was originally ported from PHP to JS in 2012 and periodically updated before being back to PHP. This code should be periodically resynced with core sanitizer changes.

Copyright © 2002-2005 Brooke Vibber bvibb.nosp@m.er@w.nosp@m.ikime.nosp@m.dia..nosp@m.org et al https://www.mediawiki.org/

@license GPL-2.0-or-later