If it was a Client script, I would use a "window" ...
# suitescript
d
If it was a Client script, I would use a "window" object to add a new element and put the string as innnerHtml property. But window is not accessible in Suitelets. I'm thinking of just using split() method, but I'm sure it's unsafe.
u
you mean the HTML of the form that you created over the Suitelet?
d
No, it's actually a statement I've created previously and saved in File Cabinet
So I need to parse it and fetch couple numbers
u
Yeah. window's in not available on Suitelet but have you tried N/xml to process the stuff into the HTML document?
d
Yes, I tried, but I got an error parsing html as xml. I think it was about meta tag
Though maybe you're right, it's easier to try to cast html to a proper xml. I'll try, thank you!