ÕýÔò±í´ïʽ¹ýÂ˵ôhtmlµÄһЩ±êÇ©
ÎÄÕµÄÄÚÈÝÊÇÓÃfck±àдµÄ£¬
ÀýÈç¡° <p> ³ÇÇø½¶³Ç£¬ÄÏ¡¢½¶±±Á½´¦¡£ <br /> “½¶³Ç”ÀúÊ·¡±
ÎÊÌâ1£ºÈ¥µôhtmlµÄ±êÇ©£¬Î´³É¹¦?
C# code:
System.Text.RegularExpressions.Regex htmlRegex = new System.Text.RegularExpressions.Regex("<[^>]+>");
string content=HttpUtility.HtmlDecode((string)ds.Tables[0].Rows[i]["Content"]);
htmlRegex.Replace(content, "");
ÎÊÌâ2£º½ØÈ¡²¿·ÖÄÚÈÝÏÔʾÔÚÒ³ÃæÉÏ£ºcontent.Substring(index - 15, index + 15) µ«ÊÇ»á³öÏÖ ¡° bsp; ³ÇÇø½¶³Ç£¬ÄÏ¡¢½¶±±Á½´¦¡£nbsp;&¡± µÄÇé¿ö£¬²»ÄܳöÏÖ¡°bsp; ¡±¡¢¡°nbsp;&¡± ÕâЩ¶«Î÷£¬ÈçºÎ½â¾ö£¿
string content=HttpUtility.HtmlDecode((string)ds.Tables[0].Rows[i]["Content"]);
Ìù³öÄãcontentµÄÄÚÈÝ
¾ÍÊÇÕâ¸ö°¡¡° <p> ³ÇÇø½¶³Ç£¬ÄÏ¡¢½¶±±Á½´¦¡£ <br /> “½¶³Ç”ÀúÊ·¡±
C# code:
string resu
Ïà¹ØÎÊ´ð£º
JSµÄÎÊÌ⣺
JScript code:
<script language="javascript">
function getDates()
{
document.getElementById("form1").tt_cc.value="ÎÒ°®JS";
......
form±íµ¥ÏÂÀ¿òµÄÀ¶É«ÔõôȥµôÄØ£¬ÎÒÏë°ÑÏÂÀ¿òµÄÑÕÉ«ÉèΪ͸Ã÷µÄ
may be no way.
ÏñQQ¿Õ¼äÀïµÄÄÇЩ͸Ã÷µÄÏÂÀ¿òÊÇÔõôŪµÃÄØ£¿
ÒýÓÃ
ÏñQQ¿Õ¼äÀïµÄÄÇЩ͸Ã÷µÄÏÂÀ¿òÊÇÔõôŪµÃÄØ£¿
ÓòãÄ£ÄâµÄ°É
»ù±¾¶¼ ......
ÏÖÒ³ÃæÉ϶¼ÊÇphpÎļþ£¬ÏÖΪÁ˼õÇáphp³ÌÐòµÄѹÁ¦£¬ÏÖÏë°Ñstr.phpÒ³Ãæ ת»¯³É str.htmlÒ³Ãæ
Ï»ص÷ÓÃstr.phpÒ³ÃæÊ±£¬µ÷ÓÃstr.htmlÒ³ÃæÊ±¾Í¿É
ÔõôʵÏÖѽ£¬thanks
PHP code:
if(is_file(str.html)){
incl ......
<style>
BODY A:hover {
CURSOR: url('http://files.poqbum.com/Files/Cursors/page1/iloveu2.ani')
}
A:link {
FONT-SIZE: 12px; COLOR: #666666; TEXT-DECORATION: none
}
A:visited {
FONT-SIZE ......
eclisephp
notepad++
»¹ÓкܶàÈí¼þ¶¼ÓÐ html tidy ²å¼þ£¬µ«ÖØÅźóµÄhtmlЧ¹û×ÜÊDz»ÀíÏ룬ÎÒÏëÒªµÄÊÇDreamweaverµÄÄÇÖÖÖØÅÅЧ¹û£¬ÇëÎÊ´ó¼ÒÓÐûÓкÃÓÃhtml tidyÅäÖÃÐÅÏ¢£¬Ä ......