YouTip LogoYouTip

Jstl Function Escapexml

# fn:escapeXml() Function [![Image 3: JSP Standard Tag Library](#)JSP Standard Tag Library](#) The fn:escapeXml() function ignores characters used for XML markup. ### Syntax The syntax for the fn:escapeXml() function is as follows: ${fn:escapeXml()} ### Example The following example demonstrates the function's functionality: Using JSTL Functions<c:set var="string2" value="This is second String."/>

Using escapeXml() function:

string (1) : ${fn:escapeXml(string1)}

string (2) : ${fn:escapeXml(string2)}

Without escapeXml() function:

string (1) : ${string1}

string (2) : ${string2}

The result is as follows: Using escapeXml() function:string (1) : This is first String.string (2) : This is second String.Without escapeXml() function:string (1) : This is first String.string (2) : This is second String. * * JSP Standard Tag Library](#)
← Jstl Function IndexofJstl Function Endswith β†’