What?
- I used JSSoup in this way.
const data.contentMain = '<p> blah blah <a>blah></a> </p> <p> blah blah </p> ..... ';
const splitContentMain: string[] = [];
const soup = new JSSoup(`<div>${data.contentMain}</div>`);
const div = soup.nextElement;
for (const child of div.contents) {
splitContentMain.push(`${child}`);
}
- and saw this situation. Surely include the white space in front of 'a' tag. but didn't show up.

- and when i edit the code
child with child.prettify() it shows perfectly.

For sure i'm glad to solve my problem. but want to make sure it's working properly.
i think prettify() is just how to show code. not for print.
Thank you!
What?
childwithchild.prettify()it shows perfectly.For sure i'm glad to solve my problem. but want to make sure it's working properly.
i think prettify() is just how to show code. not for print.
Thank you!