+ -
当前位置:首页 → 问答吧 → 求助。。。。。

求助。。。。。

时间:2011-12-07

来源:互联网

怎样将后台传过来的html标签原样显示

作者: sx469499504   发布时间: 2011-12-07

out.println("<html> <font color=red>hellow</font></html>");

作者: a372210774   发布时间: 2011-12-07

String htmlStream = "<font color=\"red\">color red</font>";
htmlStream = htmlStream.replaceAll("<","&lt;").replaceAll(">","&gt;");
out.println(htmlString)

作者: hanpoyangtitan   发布时间: 2011-12-07

不行啊,我的意思是将我后台传过来的html代码,原样显示到页面上比如:<STRONG>sadadsadssada</STRONG>
那页面上sadadsadssada就是加粗的效果

作者: sx469499504   发布时间: 2011-12-07

热门下载

更多