escapeXML"

From Documentation
(Created page with '{{ZUMLReferencePageHeader}} <source lang="java"> String escapeXML(String s); </source> :i.e., <javadoc method="escapeXML(java.lang.String)">org.zkoss.xml.XMLs</javadoc> Encode…')
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
:i.e., <javadoc method="escapeXML(java.lang.String)">org.zkoss.xml.XMLs</javadoc>
 
:i.e., <javadoc method="escapeXML(java.lang.String)">org.zkoss.xml.XMLs</javadoc>
  
Encodes a string that special characters are quoted to be compatible with HTML/XML. For example, < is translated to &lt;. & -> &amp;
+
Encodes a string that special characters are quoted to be compatible with HTML/XML. For example,
< -> &lt;
+
 
> -> &gt;
+
:&lt; is translated to &amp;lt;
" -> &#034;
+
:&gt; to &amp;gt;
' -> &#039;
+
:&amp; to &amp;amp;
 +
:" to &amp;#034;
 +
:' to &amp;#039;
  
 
'''Parameters:'''
 
'''Parameters:'''
Line 17: Line 19:
  
 
=Version History=
 
=Version History=
Last Update : {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}}
+
{{LastUpdated}}
 
{| border='1px' | width="100%"
 
{| border='1px' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content

Revision as of 08:32, 17 December 2010

String escapeXML(String s);
i.e., XMLs.escapeXML(String)

Encodes a string that special characters are quoted to be compatible with HTML/XML. For example,

< is translated to &lt;
> to &gt;
& to &amp;
" to &#034;
' to &#039;

Parameters:

  • s - the string to encode

Version History

Last Update : 2010/12/17


Version Date Content
     



Last Update : 2010/12/17

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.