Home  >  Article  >  Backend Development  >  为何新浪博客这样做呢

为何新浪博客这样做呢

WBOY
WBOYOriginal
2016-06-13 11:42:56780browse

为什么新浪博客这样做呢

本帖最后由 lghyt1 于 2013-12-16 20:44:05 编辑
   var $abc=10;
   function db(){
}
?>

上面这种直接复制到新浪博客中保存的时候,博客里面不显示,而去掉php标记就可以,真是怪了。新浪为什么这样做呢?
不仅如此,还不能在博客中有 echo '
';,晕              <div class="topic-extra-info">                <div class="tag">                                <div class="social-share">  <span class="prompt">分享到:</span>  <!-- Baidu Button BEGIN -->  <span id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">            <span class="bds_more">更多</span>      </span>        <!-- Baidu Button END -->              <br><font color="#FF8000">------解决方案--------------------</font><br>你想想如果你的网站上面有人发表评论,在评论框里面写sql代码操作你的数据库你会答应吗?如果你发表一篇博文,在里面写个js代码搞个弹窗,那页面一打开不就直接运行你的代码了么~这是为了网站安全考虑<div class="clear">
                 
              
              
        
            </div>
</div>
</div>
</div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:求教大大们。该如何处理Next article:求课程