Parsoid
A bidirectional parser between wikitext and HTML5
|
General token sanitizer. More...
Classes | |
class | ClientError |
Exception thrown on invalid client requests. More... | |
interface | ContentMetadataCollector |
Interface for collecting the results of a parse. More... | |
class | ContentModelHandler |
class | DomSourceRange |
Represents a DOM source range. More... | |
class | ElementRange |
A simple pair of DOM elements. More... | |
class | InternalException |
Parsoid internal error that we don't know how to recover from. More... | |
class | MediaStructure |
All media should have a fixed structure: More... | |
class | PageBundle |
PORT-FIXME: This is just a placeholder for data that was previously passed to entrypoint in JavaScript. More... | |
class | ResourceLimitExceededException |
Parsoid resource limit exception. More... | |
class | Sanitizer |
class | SelserData |
Data that's necessary for selective serialization, to be passed to the library entrypoint. More... | |
General token sanitizer.
Strips out (or encapsulates) unsafe and disallowed tag types and attributes. Should run last in the third, synchronous expansion stage.
FIXME: This code was originally ported from PHP to JS in 2012 and periodically updated before being back to PHP. This code should be (a) resynced with core sanitizer changes (b) updated to use HTML5 spec