PHP测试
<?php/***返回经addslashes处理过的字符串或数组*@param$string需要处理的字符串或数组*@returnmixed*/functionnew_addslashes($string){if(!is_array($string))returnaddslashes($string);foreach($stringas$key=>$val)$string[$key]=new_addslashes($val);return$string;}/***返回经stripslashes处理过的字符串或数组*@param$string需要处理的字符串或数组*@returnmixed*/functionnew_stripslashes($string){if(!is_array($string))returnstripslashes($string);foreach($stringas$key=>$val)$string[$key]=new_stripslashes($val);return$string;}?>
<divclass="bdsharebuttonbox"><ahref="#"class="bds_more"data-cmd="more"></a><ahref="#"class="bds_qzone"data-cmd="qzone"></a><ahref="#"class="bds_tsina"data-cmd="tsina"></a><ahref="#"class="bds_tqq"data-cmd="tqq"></a><ahref="#"class="bds_renren"data-cmd="renren"></a><ahref="#"class="bds_weixin"data-cmd="weixin"></a></div><script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"p_w_picpath":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-newDate()/36e5)];</script>
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。