Div contenteditable, when gluing the content, you can remove the tags containing HTML, leaving only the text?

subject
div the contenteditable function can be copied into or accepted by HTML. If I copy an article from SF to this div, the original HTML tag of SF will be copied.

Code

<div contenteditable=true"></div>

question

  1. does not know js , jquery what function can be implemented: if my copied content contains the HTML tag, then automatically clear its tag, leaving only the text?
  2. there are < iframe src*=instagram (or < iframe > ) headers in the content of the HTML tag, and the other HTML header tag is emptied, leaving only the text, and then added to div ?

using js clipboard api regular replacement


contenteditable=" plaintext-only "

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf0553-3a0a8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf0553-3a0a8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?