JSTL by default escapes all output to be HTML friendly
<c:out value="${myValue}"/>
and to disable:
<c:out value="${myValue}" escapeXML="false"/>-Tim
Greg Ward wrote:
What's the standard way of quoting text for inclusion in a web page in Java? Ie. I need a method to convert the string
Jeb said, "Hell & damnation! Is 5 > 4?"
to
Jeb said, "Hell & damnation! Is 5 > 4?"
(I think: I've never been entirely sure what the right way to handle quotes is.) That is, I want the standard Java equivalent of Python's cgi.escape(), or Perl's CGI::escapeHTML().
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
