Not sure if this is possible in all modern browsers, but is there a way using javascript / jquery to remove all html tags, CSS formatting, word doc format codes, etc. from a line of text when it is inserted into the input area of ββthe page (in my case, the element is set as "contenteditable"), so does it always go like clear text?
Of course, before even thinking about the part related to cleaning / disinfection, I first need a reliable way to listen and capture text from the insert event, and I'm not sure how to do it.
Thanks in advance!
javascript jquery regex sanitization contenteditable
Bill dami
source share