escapeXML"

From Documentation
 
(One intermediate revision by one other user not shown)
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 <
+
: <code>&lt;</code> is translated to <code>&amp;lt;</code>
:&gt; to &amp;gt;
+
: <code>&gt;</code> to <code>&amp;gt;</code>
:&amp; to &amp;amp;
+
: <code>&amp;</code> to <code>&amp;amp;</code>
:" to &amp;#034;
+
: <code>"</code> to <code>&amp;#034;</code>
:' to &amp;#039;
+
: <code>'</code> to <code>&amp;#039;</code>
  
 
'''Parameters:'''
 
'''Parameters:'''
Line 19: 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

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 &lt;
> to &gt;
& to &amp;
" to &#034;
' to &#039;

Parameters:

  • s - the string to encode

Version History

Last Update : 2022/05/19


Version Date Content
     



Last Update : 2022/05/19

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