permaculture playing cards*
The moose likes JSP and the fly likes HTML Chars escape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "HTML Chars escape" Watch "HTML Chars escape" New topic
Author

HTML Chars escape

Kudret Serin
Ranch Hand

Joined: Aug 02, 2005
Posts: 167

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: 60810
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML Chars escape
 
Similar Threads
Extracting a nested XML document
Links in properties file
To Convert a .txt file into .html file
Escaping HTML Text
How to display EL Sintax and HTML Sintax in a JSP page?