Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

½â¾öjson°üº¬html±êÇ©ÎÞ·¨ÏÔʾµÄÎÊÌâ

Ö÷ÒªÊǽ«jsonÎÞ·¨Ê¶±ðµÄ×Ö·û½øÐÐתÒå   
function dotran($str) {
        $str = str_replace('"','\\"',$str);
        $str = str_replace("\r\n",'\\r\\n',$str);
        $str = str_replace("\t",'\\t',$str);
        $str = str_replace("\\",'\\',$str);
        $str = str_replace("\b",'\\b',$str);
        return $str;
    }
ÕâÑù·µ»ØµÄÊý¾Ý¾Í¿ÉÒÔÕý³£ÏÔʾ£¬ÏÂÃæÊÇת»»ºóµÄÄÚÈÝ£º
jsontext='{"jqry":[{"id":"121","userid":"0","status":"1","filename":"","url":"333333333","title":"aaaaaaa","type":"WatchTV","seq":"1","remark":"remarktext","content":"<p>\\r\\n\\t<object classid=\\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\\" codebase=\\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\\"><param name=\\"quality\\" value=\\"high\\" /><param name=\\"movie\\" value=\\"


Ïà¹ØÎĵµ£º

È¥³ýHTML¸ñʽ ½ØÈ¡×Ö·û´®

  //½ØÈ¡²¿·ÖÄÚÈÝ·½·¨
        public static string strvalue(string value, int length)
        {
            string strValue = NoHTML(value);// È¥³ýHTML±ê¼Ç
 &nb ......

ÐÞ¸´HTMLͼ±ê¹ØÁª

HTMLºÍHTMÎļþÔÚÒ»´Îɱ¶¾ºó¶¼±ä³ÉÁË¿ÉÖ´ÐÐÎļþͼ±êµÄÑùʽ¡£ÔÚÍøÉÏËÑË÷ÁËÈô¸É·½·¨¶¼²»µÃÆä½â¡£×îºó²éÁËÒ»ÏÂ×ÊÁÏ£¬Ô­À´ÊÇ×¢²á±íÖÐÓиö¿ÉÓпÉÎ޵ļüÖµµÄ´æÔÚÔì³ÉµÄ£¬Õâ¸ö¾ÍÊÇ£º
HKEY_CLASSES_ROOT\htmlfile\ShellEx\lconHandler
ɾ³ýlconHandlerºó£¬ËùÓÐHTMLºÍHTMÎļþ¶¼±ä³ÉÁËδ֪ÎļþµÄÑùʽ£¬»¹ÐèÒªÔÙµ½“¿ØÖÆÃæ°å&rdq ......

htmlÔªËØÖÐtitle¡¢alt»»Ðз½°¸

·½Ê½Ò»£º&#10;»ò&#13;×÷»»Ðзû
·½Ê½¶þ£ºÖ±½ÓÔÚÔ´ÂëÖÐÇûسµ
¡¾½¨Òé¡¿ ²ÉÓ÷½°¸Ò»¡£
¡¾Ô´Âë¡¿
<a href="#" title="µÚÒ»ÐÐ&#10;µÚ¶þÐÐ&#13;µÚÈýÐÐ">·½Ê½Ò»£ºÊó±ê·ÅÔÚÎÒÉÏÃæ¿´Ò»ÏÂtitle</a>
<br />
<br />
<a href="#" title="µÚÒ»ÐÐ
µÚ¶þÐÐ
µÚÈýÐÐ">·½Ê½¶þ£ºÊó± ......

HTML 5——ÏÂÒ»´úweb¿ª·¢±ê×¼

HTML 5——ÏÂÒ»´úweb¿ª·¢±ê×¼
HTML5¿´À´½«³ÉΪÖ÷Á÷£¬ä¯ÀÀÆ÷Õ½ÕùÄËÖÁÕû¸ö»¥ÁªÍøµÄ·¢Õ¹Ò²½«Î§ÈÆÕâÒ»µãÕ¹¿ª¡£¶øFlash¡¢SilverlightºÍJavaFXµÈµÈRIA¼¼Êõ£¬½«ÃæÁÙÑϾþµÄÉú´æÌôÕ½
²Î¿¼51cto
http://developer.51cto.com/art/200907/133407.htm ......

Javascript ÖжÔHTML±àÂëºÍ½âÂëµÄ·½·¨

String.prototype.HTMLEncode = function() {
var temp = document.createElement ("div");
(temp.textContent != null) ? (temp.textContent = this) : (temp.innerText = this);
var output = temp.innerHTML;
temp = null;
return output;
}
String.prototype.HTMLDecode = function() {
var temp = doc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ