Felix Boehm

Results 144 comments of Felix Boehm

Hi @MMirora, please include the actual HTML of you issue, otherwise this is difficult to replicate.

Your best bet is likely to find the `text` node in the tree, then update its `data` property directly: ```ts const text = $('body').get(0).childNodes[0] text.data = text.data.replace('Ipsum', 'Possum') ```

I had the same problem. Please just fix this issue, I lost ~2 hours on it.

The funny thing is that, if you add a space between the script and the h1-tag, it actually works: https://github.com/FB55/node-htmlparser/blob/master/tests/23-template_script_tags.js

I fixed the bug inside my own [fork](https://github.com/FB55/node-htmlparser), the test linked above passes without a problem (the additional space was removed).

This makes sense as a new option — PRs welcome!

Hi @ceddy4395, thanks for this awesome PR! Prettier is currently unhappy with the formatting of a file, happy to merge once that's resolved.

@ceddy4395 Thanks a lot, merged!

Too late now unfortunately, as downgrading it will lead to more breakages. Sorry for the inconvenience.

Thanks for the links! Happy to accept PRs for this.