This Function use to escape the characters that interpreted as XML markup Language.

In this Program first we declare the syntax of function library. After then we declare the variable as per condition the other hand the function used in this program will escape the characters that interprets under xml. After declaring the variables we put the function syntax that will use to execute on the web browser. At last we close all the custom or html tags.


<%@ taglib uri="" prefix="c" %> 

<%@ taglib uri="" prefix="fn" %> 



           <title>&lt;fn:escapeXML&gt; In JSTL</title>



         <c:set var="str" value="This is Example of <b>Java Server Pages</b> escapeXML Function In  JSTL."></c:set>

         <center><p><br />Without escapeXml function : ${str}


         <center><p><br />With escapeXml function : ${fn:escapeXml(str)}



       JSTL fn:escapeXml() Function

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.