为何新浪博客这样做呢

WBOY
Release: 2016-06-13 12:31:07
Original
927 people have browsed it

为什么新浪博客这样做呢

本帖最后由 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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template