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…') |
|||
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, | + | 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:''' | '''Parameters:''' |
Revision as of 07:58, 16 November 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 <
- > to >
- & to &
- " to "
- ' to '
Parameters:
- s - the string to encode
Version History
Last Update : 2010/11/16
Version | Date | Content |
---|---|---|