I'm using the TinyMCE plugin and have the valid_elements
option is set to:
"a[href|target:_blank],strong/b,em/i,br,p,ul,ol,li"
Even though data- attributes aren't listed, TinyMCE doesn't strip them out. It seems to strip out all other non-listed attributes, but for some reason, data- attributes (e.g. data-foo="bar"
) are an exception. How can I get TinyMCE to strip out data- attributes?
I'm using TinyMCE version 3.4.7