EditorSerializationSettingsTagHelper
Example
Razor
<serialization/>
Attributes
Attribute | Type | Description |
---|---|---|
custom | String | Define custom serialization for the editable content. The method accepts a single parameter as a string and is expected to return a string. |
entities | Boolean | Indicates whether the characters outside the ASCII range will be encoded as HTML entities. By default, they are encoded. |
optimize-tags | Boolean | Indicates 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). |
scripts | Boolean | Indicates whether inline scripts will be serialized and posted to the server. |
semantic | Boolean | Indicates 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. |