tinymce.html.Entities
Entity encoder class.
Summary
Methods
Name | Summary | Defined by |
---|---|---|
Decodes the specified string, this will replace entities with raw UTF characters. |
||
Encoded the specified text with both the attributes and text entities. This function will produce larger text contents
since it doesn’t know if the context is within an attribute or text node. This was added for compatibility
and is exposed as the |
||
Encodes the specified string using named entities. The core entities will be encoded as named ones but all non lower ascii characters will be encoded into named entities. |
||
Encodes the specified string using numeric entities. The core entities will be encoded as named ones but all non lower ascii characters will be encoded into numeric entities. |
||
Encodes the specified string using raw entities. This means only the required XML base entities will be encoded. |
||
Returns an encode function based on the name(s) and it’s optional entities. |
Methods
decode()
decode(text: String): String
Decodes the specified string, this will replace entities with raw UTF characters.
encodeAllRaw()
encodeAllRaw(text: String): String
Encoded the specified text with both the attributes and text entities. This function will produce larger text contents
since it doesn’t know if the context is within an attribute or text node. This was added for compatibility
and is exposed as the DOMUtils.encode
function.
encodeNamed()
encodeNamed(text: String, attr: Boolean, entities: Object): String
Encodes the specified string using named entities. The core entities will be encoded as named ones but all non lower ascii characters will be encoded into named entities.
encodeNumeric()
encodeNumeric(text: String, attr: Boolean): String
Encodes the specified string using numeric entities. The core entities will be encoded as named ones but all non lower ascii characters will be encoded into numeric entities.
encodeRaw()
encodeRaw(text: String, attr: Boolean): String
Encodes the specified string using raw entities. This means only the required XML base entities will be encoded.
getEncodeFunc()
getEncodeFunc(name: String, entities: String): Function
Returns an encode function based on the name(s) and it’s optional entities.