Tidying up RTF content
An XSLT filter is applied to Rich Text Fields (format areas) to tidy content pasted into it, for example from Microsoft Word. You can adjust the XSLT filter to act more or less aggressively on pasted content, or you can replace it for the default or your own custom version.
About this task
The XSLT filter used in the List Element and Paragraph Embeddable Schemas removes the following (disallowed) elements from the HTML in the format area:
- all font tags from the HTML but keep its children
- all style attributes except those for a table and its cells and allow underline to span tags
- rowspan and collspan attributes when set to 1
- well known Microsoft Word classes (starting with
Msoormso) - conditional comments that Microsoft Word uses, for example:
<!––[if gte mso 9]> <![endif]––>