Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
JSP
HTML Chars escape
Kudret Serin
Ranch Hand
Posts: 167
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Sheriff
Posts: 67750
173
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Use the JSTL <c:out> tag yo emit any strings that need to be HTML-escaped.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
A magnificient life is loaded with tough challenges. En garde tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Extracting a nested XML document
To Convert a .txt file into .html file
How to display EL Sintax and HTML Sintax in a JSP page?
Links in properties file
Escaping HTML Text
More...