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…') |
|||
(2 intermediate revisions by 2 users 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 < | + | Encodes a string that special characters are quoted to be compatible with HTML/XML. For example, |
− | < | + | |
− | > | + | : <code><</code> is translated to <code>&lt;</code> |
− | " | + | : <code>></code> to <code>&gt;</code> |
− | ' | + | : <code>&</code> to <code>&amp;</code> |
+ | : <code>"</code> to <code>&#034;</code> | ||
+ | : <code>'</code> to <code>&#039;</code> | ||
'''Parameters:''' | '''Parameters:''' | ||
Line 17: | Line 19: | ||
=Version History= | =Version History= | ||
− | + | {{LastUpdated}} | |
{| border='1px' | width="100%" | {| border='1px' | width="100%" | ||
! Version !! Date !! Content | ! Version !! Date !! Content |
Latest revision as of 01:14, 19 May 2022
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
Version | Date | Content |
---|---|---|