Shawn Bayern wrote:
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" />
-- ================================================================= = Management is doing things right; leadership is doing the = = right things. - Peter Drucker = =_______________________________________________________________= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = =================================================================
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
