The escape Tag 

Overview 

This tag is used to display any text from a JavaBean that may have HTML mark-up in it. This tag escapes the HTML so that the text can be displayed without been interpreted by the browser. 

Tag Usage 

This tag is used as follows: 

<jee:escape name=”beanInstanceName” property=”propertyName”
[substituteBreaks=”true|false”] />

name – The name of the bean· property – The name of the property· 

substituteBreaks – If this flag is set to true then the tag will replace any carriage return/line feeds in the text will be replaced with the HTML tag “<br>”

Example

The following code shows an example of using this tag: 

<%@ taglib uri="jeenius" prefix="jee" %>
<jsp:useBean id=”myBean” class=”example.MyBean”/> <html> . .
. Value is: <jee:escape name=”myBean” value=”description”/> . .
. </html>