Menu

org.htmlparser.scanners.ScriptScanner

2009-02-28
2013-04-27
  • Denis Sokol

    Denis Sokol - 2009-02-28

    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.

     
    • Derrick Oswald

      Derrick Oswald - 2009-02-28

      It's probably because you have parsed some bad script.
      Take a look at other threads in this forum regarding strict parsing.

       
      • Denis Sokol

        Denis Sokol - 2009-03-01

        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)))

         
        • Derrick Oswald

          Derrick Oswald - 2009-03-01

          I believe you will get the erroneous behaviour that you want if you set the static variable:

          org.htmlparser.scanners.ScriptScanner.STRICT = false;

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.