sanitizeClassAttr

A function for sanitizing the CSS classes of the pasted from MS Word content (see example). The function will remove any class attribute which value starts with Mso. For example <p class="MsoNormal">pasted from MS Word</p> will result in <p>pasted from MS Word</p>.

Parameters

attr

Attr

The DOM class attribute that will be sanitized.

In this article

Not finding the help you need?