A function for sanitizing the style attributes of the pasted from MS Word content (see example). The function will loop through all styles and will remove those that are invalid. For example <p><span style='color:#7C7C7C;mso-themecolor:accent3;mso-themeshade:191;background:silver;'>content</span></p>, will result in <p><span style="color: #7C7C7C; background: silver;">content</span></p>.


attr Attr

The DOM style attribute that will be sanitized.