striven-erp/striven-editor

Should get only the text content of the editor

Opened this issue · 2 comments

Write a test for se.getTextContent which should only return text content and not HTML.

Heyy @unitehenry ,
What is the difference between se.scrubHTML and se.getTextContent?

@sambhavjain9138

  • 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.