I have looked it through and haven't found any example of the usage.
When I have a node that contains script-node what should I do to get this script-node. Actually I dont understand how scanner works. What are the parameters of (new ScriptScanner()).scan(Tag, Lexer,NodeList), what should this paraters contain.
I need help)))
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Where can I find examples of the usage of this org.htmlparser.scanners.ScriptScanner??
My trouble is that in the script tag there is a write functioncall that prints "</script>". There is something like this:
<Script>
document.write('</script>');
</Script>
Please, help me.
It's probably because you have parsed some bad script.
Take a look at other threads in this forum regarding strict parsing.
I have looked it through and haven't found any example of the usage.
When I have a node that contains script-node what should I do to get this script-node. Actually I dont understand how scanner works. What are the parameters of (new ScriptScanner()).scan(Tag, Lexer,NodeList), what should this paraters contain.
I need help)))
I believe you will get the erroneous behaviour that you want if you set the static variable:
org.htmlparser.scanners.ScriptScanner.STRICT = false;