¹ýÂËhtmlÎı¾·½·¨
public static string filterStr(string html)
{
System.Text.RegularExpressions.Regex regex1 = new System.Text.RegularExpressions.Regex(@"<script[\s\S]+</script *>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex2 = new System.Text.RegularExpressions.Regex(@" href *= *[\s\S]*script *:", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex3 = new System.Text.RegularExpressions.Regex(@" no[\s\S]*=", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex4 = new System.Text.RegularExpressions.Regex(@"<iframe[\s\S]+</iframe *>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex5 = new System.Text.RegularExpressions.Regex(@"<frameset[\s\S]+</frameset *>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex6 = new System.Text.RegularExpressions.Regex(@"\<img[^\>]+\>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex7 = new System.Text.RegularExpressions.Regex(@"</p>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Rege
Ïà¹ØÎĵµ£º
Èç¹ûÓÃwebbrowserµÄdocumentÈ¥»ñÈ¡IFrameÕâ¸ö¶ÔÏó£¬ËæºóÒ»¶¨»áµÃµ½accessdeniedµÄ´íÎó£¬ÎªÊ²Ã´£¿
ÕÒÁËһϣ¬¾Ý˵ÊDz»ÄÜ¿çÓò·ÃÎÊ...
ÖÕÓÚÓÐÒ»Ì죬ÊÔÁËһϣ¬ÔÚOnDocumentCompleteʼþÀïÃæ·µ»ØµÄdispatch¾ÍÊÇiframeµÄIHTMLWindow2¶ÔÏó£¬ÔÚÄÇÀï¿ÉÒÔ²Ù×÷ËùÓеĶÔÏó£¬È»ºó£¬ÄãÏë×öʲô¾ÍËæÄãÁË£¬²»ÖªµÀÈç¹ûÕâ¸öʱºò±£´æÁËÕâ¸öI ......
תÔØ£ºhttp://jiangzhengjun.javaeye.com/blog/480996
ʼþ
DOMͬʱ֧³ÖÁ½ÖÖʼþģʽ£º²¶»ñÐÍʼþºÍðÅÝÐÍʼþ£¬µ«ÊÇ£¬²¶»ñÐÍʼþÏÈ·¢Éú¡£Á½ÖÖʼþÁ÷»á´¥¼°DOMÖеÄËùÓжÔÏ󣬴Ódocument¶ÔÏó¿ª
ʼ£¬Ò²ÔÚdocument¶ÔÏó½áÊø£¨´ó²¿·Ö¼æÈݱê×¼µÄä¯ÀÀ»á¼ÌÐø½«Ê¼þ²¶»ñ/ðÅÝÑÓÐøÖÁwindow¶ÔÏ󣩣¬DOMÖеÄÔªËض¼»áÁ¬ÐøÊÕµ½Á½´ÎÊ ......
HTMLÖÐʹÓÃinput type="file"ÉÏ´«Îļþʱ£¬´úÂëÖÐÖ»Äܵõ½ÎļþµÄÃû³Æ£¬¶øÓÐЩÌØÊâµÄÐèÒªÒªÇóÎÒÃDZØÐëµÃµ½ÉÏ´«ÎļþµÄ¾ø¶Ô·¾¶£¬Îª´ËÎÒÃDzÉÓÃJavascriptʵÏֵõ½ÎļþµÄ¾ø¶Ô·¾¶¡£
¾ßÌåÈçÏ¡£
Ò³Ãæ´úÂ루ֻճÌùÁ˹ؼü´úÂ룩£º
<form name="thisform" method="post"
action="<%=request.getContextPath()%>/movi ......
ÏÖÔÚ×ö Code Manager .SWT µÄ¹ý³ÌÖв»¿É±ÜÃâµÄÓöµ½ÁËÐèҪץ´æÍøÒ³ÒÔ¼°ÍøÒ³ÄÚǶµÄһЩ×ÊÔ´µÄÎÊÌâ.
ÏÖÔÚ
MHT Éú³ÉÒѾ²»³ÉÎÊÌâ, µ«ÊÇÈçºÎ̽²âÔ´Îļþ±àÂëÒÔ¼°°Ñ MHT ½âѹËõ(µ¼³ö)Ϊ¿ÉÒÔä¯ÀÀµÄ HTML Îļþ(º¬Í¼Æ¬µÈ)ÊǸö´óÎÊÌâ,
ÒÔ¼°Óû§¿ÉÊÓ»¯±à¼Ò³ÃæºóÖØб£´æΪ MHT µÄÎÊÌâ. Java µÄ MHT ´¦Àí¼¼ÊõÄ¿Ç°ÊÇÓÐÒ»¼ÒÃÀ¹ú¹«Ë¾ÔÚ ......
HTML³£Ó÷ûºÅ£º
ÏÔʾһ¸ö¿Õ¸ñ  
< СÓÚ < <
> ´óÓÚ > >
& &·ûºÅ & &
" Ë«ÒýºÅ " "
ÆäËû³£ÓõÄ×Ö·ûʵÌå(Character Entities)
ÏÔʾ½á¹û ˵Ã÷ Entity Name Entity Number
? °æȨ © ©
? ×¢²áÉ̱ ......