Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

tinymce return text and html

const html = <p><strong>fgkjhgh</strong></p>
<p><em>fgfghfgh</em></p>
<p>gfbfg</p>
<p>ghfgh fgf</p>"

let plainText = html.replace(/<[^>]*>/g, "");
 console.log(plainText) // plainText= "fgkjhgh fgfghfgh gfbfg ghfgh fgf"
Source by archive.tinymce.com #
 
PREVIOUS NEXT
Tagged: #tinymce #return #text #html
ADD COMMENT
Topic
Name
3+2 =