There is the following block:
<div contenteditable="true"> Здесь html код </div> I can edit this block right on the page, but if it contains HTML stylized text, then when copying this text, the corresponding HTML code is also copied with it. Question: how to clear the buffer when copying from HTML code and leave ONLY text? Thanks in advance for the answer to such a non-standard question.
contenteditable="true"and where do you copy the fragment? - Konstantin Basharkevich