Hoping for something cleaner than regex
# suitescript
j
Hoping for something cleaner than regex
a
You may need to write an HTML to JSON helper/function, but I'm pretty sure there is something out there already doing that.
d
parse the HTML with DOMParser
m
That would only work client side though I'd imagine
d
That... is a good point. I take it you couldn't fool the
N/xml
module into doing your dirty work? Otherwise I'd presume it's time to resort to a library to avoid regex hell