what i want to make
I want to make a rich text editor(using contenteditable div, and execcommand()). It works just fine but if i copy content from other websites with unclosed html tags and paste it to the contenteditable div, and upload it, the uploaded content messes up my website
what i am trying to find
I am trying to find a way to remove the unclosed html tags
what i tried
I tried the jquery htmlclean plugin. It didn't work for some reason.