escapeXML"
From Documentation
Line 9: | Line 9: | ||
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; | + | : <code><</code> is translated to <code>&lt;</code> |
− | :> to &gt; | + | : <code>></code> to <code>&gt;</code> |
− | :& to &amp; | + | : <code>&</code> to <code>&amp;</code> |
− | :" to &#034; | + | : <code>"</code> to <code>&#034;</code> |
− | :' to &#039; | + | : <code>'</code> to <code>&#039;</code> |
'''Parameters:''' | '''Parameters:''' |
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 |
---|---|---|