This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes HTML Chars escape Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "HTML Chars escape" Watch "HTML Chars escape" New topic
Author

HTML Chars escape

Kudret Serin
Ranch Hand

Joined: Aug 02, 2005
Posts: 165

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

Joined: Jan 10, 2002
Posts: 56204
    
  13

Use the JSTL <cut> tag yo emit any strings that need to be HTML-escaped.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: HTML Chars escape
 
Similar Threads
How to display EL Sintax and HTML Sintax in a JSP page?
To Convert a .txt file into .html file
Extracting a nested XML document
Links in properties file
Escaping HTML Text