It work on the server side (node.js), I can’t use dom parser. How can I clear all string without specific eg. <div id=“hi”>…</div>
element and it childs.
The HTML response is dynamic, for this regex not solve (we don’t know wich close tag is our searched).
- Should we use pure js.
1