Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML Chars escape

 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a string which has HTML tags (like <br> <p> etc) in it.
When i write it with out.print() to output, i see bold text. But i want to see the <b> tag itself.
How can i escape?
Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the JSTL <cut> tag yo emit any strings that need to be HTML-escaped.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic