sgmllib解析包含javascript的html

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

sgmllib解析包含javascript的html

Xian Chen
如果要解析的某个tag中有javascript,而javascript中正好包含">",就会解析出错,对于这个问题大家有没有好的解决办法?

比如<img onclick="if(this.width >10)

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese