Parse html on server side?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 09:01 AM
Hello,
I'm looking for a way to parse html on the server side. Client side I can use DOMParser, but I'm not sure what my options are if any server-side?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 09:07 AM
What exactly are you trying to parse? You do have some options if this is XML:
XMLDocument Script Object - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 09:59 AM
Hey Brad,
I'm actually trying to parse html. I'm playing around with the possibility of pulling the html from kb articles, getting all of the links in said article and then checking to make sure they are valid.
Thanks!
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2016 02:25 AM
Hi Dan,
Even I want to get width of the image tags from the HTML field.Did u find the solution for it?
Could you please help me with the code?
Thanks
Sreeja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2016 07:17 AM
I actually didn't end up doing this, but I still think it's a good idea. I think the XML helper might do the trick, but there are some other options. I'll probably revisit this soon and I'll post back here with what I come up with.