如何逃避“<"在jsp中 [英] How to escape '<' in jsp
本文介绍了如何逃避“<"在jsp中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想像这样在servlet中更改html字符串:< font color = red> god</font>",但是当我将其发送给浏览器显示时,它总是转义为& lt;字体颜色=红色& gt;自动.
struts2.0项
eclispse
I want change a html string in servlet like this : "<font color=red >god</font>",but when I sent it to show in browser,it''s always escape to "< font color=red >" automatically.
struts2.0 item
eclispse
推荐答案
^ ]这可能会对您有所帮助.
一切顺利.
http://stackoverflow.com/questions/475839/how-can-i-escape-special-html-characters-in-jsp[^]This may help you.
All the best.
这篇关于如何逃避“<"在jsp中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文