This option controls how entities/characters get processed by TinyMCE. The value can be set as shown in Encoding Types below.
The base entities <
>
&
'
and "
will always be entity encoded into their named equivalents. Though '
and "
will only be encoded within attribute values and <
>
will only be encoded within text nodes. This is correct according too the HTML and XML specs.
Encoding Types
Name | Summary |
---|---|
named | Characters will be converted into named entities based on the entities option. For example, a non-breaking space could be encoded as . |
numeric | Characters will be converted into numeric entities. For example, a non-breaking space would be encoded as . |
raw | All characters will be stored in non-entity form except these XML default entities: & < > " |
Example of usage of the entity_encoding option:
tinyMCE.init({
...
entity_encoding : "raw"
});
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.