On Mon, 10 Mar 2003, Hanasaki JiJi wrote:
> Thanks to Brian and Shawn! anyone know of a lib that will perfrom the
> escXML on a String?
>
> goal:
> take in input string that may / maynot have HTML tags
> zap the html tags or turn them to pure text ala <
You can use <c:out> wrapped by <c:set> to do this, as in
<c:set var="safeStringWithNoBrackets">
<c:out value="${mayContainHtmlOrMayNot}" />
</c:set>
<%-- modify string --%>
<c:out value="${safeStringWithNoBrackets}" escapeXml="false" />
--
Shawn Bayern
"JSTL in Action" http://www.manning.com/bayern
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]