½â¾ö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=\\"
Ïà¹ØÎĵµ£º
//½ØÈ¡²¿·ÖÄÚÈÝ·½·¨
public static string strvalue(string value, int length)
{
string strValue = NoHTML(value);// È¥³ýHTML±ê¼Ç
&nb ......
HTMLºÍHTMÎļþÔÚÒ»´Îɱ¶¾ºó¶¼±ä³ÉÁË¿ÉÖ´ÐÐÎļþͼ±êµÄÑùʽ¡£ÔÚÍøÉÏËÑË÷ÁËÈô¸É·½·¨¶¼²»µÃÆä½â¡£×îºó²éÁËÒ»ÏÂ×ÊÁÏ£¬ÔÀ´ÊÇ×¢²á±íÖÐÓиö¿ÉÓпÉÎ޵ļüÖµµÄ´æÔÚÔì³ÉµÄ£¬Õâ¸ö¾ÍÊÇ£º
HKEY_CLASSES_ROOT\htmlfile\ShellEx\lconHandler
ɾ³ýlconHandlerºó£¬ËùÓÐHTMLºÍHTMÎļþ¶¼±ä³ÉÁËδ֪ÎļþµÄÑùʽ£¬»¹ÐèÒªÔÙµ½“¿ØÖÆÃæ°å&rdq ......
·½Ê½Ò»£º »ò ×÷»»Ðзû
·½Ê½¶þ£ºÖ±½ÓÔÚÔ´ÂëÖÐÇûسµ
¡¾½¨Òé¡¿ ²ÉÓ÷½°¸Ò»¡£
¡¾Ô´Âë¡¿
<a href="#" title="µÚÒ»ÐÐ µÚ¶þÐÐ µÚÈýÐÐ">·½Ê½Ò»£ºÊó±ê·ÅÔÚÎÒÉÏÃæ¿´Ò»ÏÂtitle</a>
<br />
<br />
<a href="#" title="µÚÒ»ÐÐ
µÚ¶þÐÐ
µÚÈýÐÐ">·½Ê½¶þ£ºÊó± ......
HTML 5——ÏÂÒ»´úweb¿ª·¢±ê×¼
HTML5¿´À´½«³ÉΪÖ÷Á÷£¬ä¯ÀÀÆ÷Õ½ÕùÄËÖÁÕû¸ö»¥ÁªÍøµÄ·¢Õ¹Ò²½«Î§ÈÆÕâÒ»µãÕ¹¿ª¡£¶øFlash¡¢SilverlightºÍJavaFXµÈµÈRIA¼¼Êõ£¬½«ÃæÁÙÑϾþµÄÉú´æÌôÕ½
²Î¿¼51cto
http://developer.51cto.com/art/200907/133407.htm ......
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 ......