
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 05:12 AM
Is there a easy way to extract the text from knowledge articles and wipe away the HTML tags as well? I am looking to convert or copy the knowledge articles HTML content to plain text.
I have already tried getHTMLValue() but the resulting text still have the HTML tags.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 05:20 AM
I've done this with web pages. A simple RegEx replace worked well for me.
var noHTML = rawText.replace(/<[^>]*>/g, ''); |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 05:20 AM
I've done this with web pages. A simple RegEx replace worked well for me.
var noHTML = rawText.replace(/<[^>]*>/g, ''); |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 05:27 AM
Hey Thanks !
But no API right OOB for this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 05:34 AM
You are welcome.
Nothing OOB that I'm aware of. It wouldn't take much to make a UI action to do that however.