Question Token Ibragimov · Oct 17, 2018

Convert to readable format

Hello!

How I can convert html code symbols to readable format:

Керимбай Нурия

Comments

Robert Cemper · Oct 17, 2018

USER>s x="Керимбай Нурия"

USER> w##class(%CSP.Page).UnescapeHTML(x)
Керимбай Нурия

0
Vitaliy Serdtsev  Oct 17, 2018 to Robert Cemper

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>

0
Tomas Vaverka  Oct 18, 2018 to Vitaliy Serdtsev

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")
}

0