Dear all,
I wish remove <Img> tag in html. I found if the tag like
<IMG alt="" src="/oldweb/uploadfile/2007930144216542.jpg" onload="javascript:if(this.width>screen.width-333)this.width=screen.width-333" border=0>
It doesn't work well, the result is
screen.width-333)this.width=screen.width-333" border=0>
How can I make htmlparser deal with the end of <Img> tag correctly?
Thanks!
Best Regards,
Wxredstar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for reply!
static member org.htmlparser.scanners.ScriptScanner.STRICT has already been set to false. I think htmlparser can only recognize <scripts></scripts> tag but scripts in "onload" method.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
I wish remove <Img> tag in html. I found if the tag like
<IMG alt="" src="/oldweb/uploadfile/2007930144216542.jpg" onload="javascript:if(this.width>screen.width-333)this.width=screen.width-333" border=0>
It doesn't work well, the result is
screen.width-333)this.width=screen.width-333" border=0>
How can I make htmlparser deal with the end of <Img> tag correctly?
Thanks!
Best Regards,
Wxredstar
This is incorrect script because of the 'greater-than' sign in the quoted constant.
Try setting the static member:
org.htmlparser.scanners.ScriptScanner.STRICT = false;
Thanks for reply!
static member org.htmlparser.scanners.ScriptScanner.STRICT has already been set to false. I think htmlparser can only recognize <scripts></scripts> tag but scripts in "onload" method.