Serialization
configurationAllows setting of serialization options.
serialization
Objectserialization.custom
FunctionDefine custom serialization for the editable content. The method accepts a single parameter as a string and is expected to return a string.
serialization.entities
BooleanIndicates whether the characters outside the ASCII range will be encoded as HTML entities. By default, they are encoded.
Default: true
serialization.optimizeTags
BooleanIndicates whether optizable tags should be removed from the DOM. Currently, optimizable tags are span and font elements with no attributes and no decoration or formatting applied (via inline styles/attributes).
Default: false
serialization.scripts
BooleanIndicates whether inline scripts will be serialized and posted to the server.
Setting this option does not prevent cross-site scripting (XSS) attacks; you need server sanitization, too. See the preventing cross-site-scripting help topic for more information.
Default: false
serialization.semantic
BooleanIndicates whether the font styles will be saved as semantic (strong / em / span) tags, or as presentational (b / i / u / font) tags. Used for outputting content for legacy systems.
Default: true