Should get only the text content of the editor
Opened this issue · 2 comments
unitehenry commented
Write a test for se.getTextContent
which should only return text content and not HTML.
sambhavjain9138 commented
Heyy @unitehenry ,
What is the difference between se.scrubHTML and se.getTextContent?
unitehenry commented
- The
scrubHTML
can generically be used for any external elements that want to be scrubbed of HTML. - The
getTextContent
method is strictly used for getting text content from the editor.