views:

19

answers:

0

I'm cleaning HTML using cyberneko and xerces. However , some $#@@!@@ websites still use BOTH

<script>...</script> and <script.../> 

So what happens is this : given

<script..../> <div> Some Text </div> <script> scripting stuff </script> , 

neko parses all the above line as a script , so I get

<script..../> &lt div &gt Some Text &lt/div &gt &lt script &gt scripting stuff </script> , 

And then I lose all the inside content :(

Any advice?