| Namespace | tinymce.html |
| Class | SaxParser |
| Type | Singleton |
| Method | Defined By |
|---|---|
|
Constructs a new SaxParser instance.
|
SaxParser |
|
encodeAllRaw(text:String):String
[static] Encoded the specified text with both the attributes and text entities.
|
SaxParser |
|
encodeNamed(text:String, attr:Boolean, entities:Object):String
[static] Encodes the specified string using named entities.
|
SaxParser |
|
encodeNumeric(text:String, attr:Boolean):String
[static] Encodes the specified string using numeric entities.
|
SaxParser |
|
encodeRaw(text:String, attr:Boolean):String
[static] Encodes the specified string using raw entities.
|
SaxParser |
|
getEncodeFunc(name:String, entities:String):function
[static] Returns an encode function based on the name(s) and it's optional entities.
|
SaxParser |
|
parse(html:String):void
Parses the specified HTML string and executes the callbacks for each item it finds.
|
SaxParser |
public
function SaxParser(settings:Object, schema:Schema)
| settings:Object | Name/value collection of settings. comment, cdata, text, start and end are callbacks. |
| schema:Schema | HTML Schema class to use when parsing. |
public static
function encodeAllRaw(text:String):String
| text:String | Text to encode. |
public static
function encodeNamed(text:String, attr:Boolean, entities:Object):String
| text:String | Text to encode. |
| attr:Boolean | Optional flag to specify if the text is attribute contents. |
| entities:Object | Optional parameter with entities to use. |
public static
function encodeNumeric(text:String, attr:Boolean):String
| text:String | Text to encode. |
| attr:Boolean | Optional flag to specify if the text is attribute contents. |
public static
function encodeRaw(text:String, attr:Boolean):String
| text:String | Text to encode. |
| attr:Boolean | Optional flag to specify if the text is attribute contents. |
public static
function getEncodeFunc(name:String, entities:String):function
| name:String | Comma separated list of encoders for example named,numeric. |
| entities:String | Optional parameter with entities to use instead of the built in set. |
public
function parse(html:String):void
| html:String | Html string to sax parse. |