Convert to readable format
Hello!
How I can convert html code symbols to readable format:
Керимбай Нурия
Comments
USER>s x="Керимбай Нурия"
USER> w##class(%CSP.Page).UnescapeHTML(x)
Керимбай Нурия
Thanks a lot Robert!
or <FONT COLOR="#0000ff">w $zcvt</FONT><FONT COLOR="#000000">(</FONT><FONT COLOR="#800000">x</FONT><FONT COLOR="#000000">,</FONT><FONT COLOR="#008000">"I"</FONT><FONT COLOR="#000000">,</FONT><FONT COLOR="#008000">"HTML"</FONT><FONT COLOR="#000000">)</FONT>
Right, this is exactly what UnescapeHTML method does:
/// This method converts Escaped HTML text into normal HTML text
ClassMethod UnescapeHTML(in) As %String [ CodeMode = expression, ServerOnly = 1 ]
{
$zconvert(in,"I","HTML")
}