Description

Escape Utilities

Escape text for JavaScript

j:escapeJavaScript('This is a \'test') ==> This is a \'test

Escape text for Java

j:escapeJava('This is a \'test') ==> This is a 'test

Escape text for html

j:escapeHtml(' this is a & test')} ==> this is a & test

Escape text for...
This is a \'test
This is a 'test
this is a & test
		<p:panel header="Escape text for..." styleClass="jeesl-panel">
			<j:inputGrid>
				<p:outputLabel value="JavaScript"/>
				<h:outputText value="#{j:escapeJavaScript('This is a \'test')}"/>
	
				<p:outputLabel value="Java"/>
				<h:outputText value="#{j:escapeJava('This is a \'test')}"/>
				
				<p:outputLabel value="HTML"/>
				<h:outputText value="#{j:escapeHtml(' this is a &#38; test')}"/>
			</j:inputGrid>
		</p:panel>