TinyMCE:Configuration/entity encoding

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: entity_encoding

This option controls how entities/characters gets processed by TinyMCE. The value can be set to numeric, named or raw. Where numeric is numeric representation such as " " named is entity names such as " " and raw is " ". The default value of this option is named, if named is used the entities option will be used to convert the codes into names.

Encoding types

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"
});
Personal tools