Open hacknlove opened 1 year ago
there are nodes where no escape should happen: title, textarea, and script or css, among others ... this keeps coming up and I've no idea why ... will have a look whenever I'll find time
I have a similar problem, but not sure if it's exactly the same. It's also about odd replacements in script tags:
const { document } = parseHTML(`<script>new RegExp('(^something.*$')</script>`)
console.log(document.toString());
prints:
<script>new RegExp('(^something.*/script>)</script>
If it's not the same issue, I'm happy to create a new one ✌️
It should be
() => {
and5>4
I'm using linkedom@0.14.25