If someone grabs something off a page or email and doesn’t capture everything, then pastes that into TinyMCE with missing tags (like <p> and <div>), how do you protect against those un-closed tags spilling into the rest of your page? Thanks!
If someone grabs something off a page or email and doesn’t capture everything, then
Share
Look into implementing the Tiny MCE Paste plugin, it has an option
paste_auto_cleanup_on_pasteyou can set to true to tidy any HTML once it’s pasted in.From the linked example: