JSSoup icon indicating copy to clipboard operation
JSSoup copied to clipboard

Serializing jssoup back into writable format for fs

Open Germminate opened this issue 3 years ago • 1 comments

I added some attirbutes to the html page using jssoup.

If i want to convert it back to fs writable object, how should i do it?

Germminate avatar Mar 08 '22 15:03 Germminate

I believe what you're looking for is this: https://www.npmjs.com/package/jssoup#user-content-output

Simply call soup.prettify()

JaydenMaalouf avatar Mar 24 '22 10:03 JaydenMaalouf