How to convert the following text to the correct line in C #?

How to convert the following text to the correct line in C #?

<IconStyle xmlns="http://earth.google.com/kml/2.0"><color>FFFFFFFF</color><scale>1.0</scale><Icon><href>root://icons/palette-5.png</href><x>192</x><y>192</y><w>32</w><h>32</h></Icon></IconStyle><LabelStyle xmlns="http://earth.google.com/kml/2.0"><scale>0</scale></LabelStyle><BalloonStyle xmlns="http://earth.google.com/kml/2.0"><text>$[description]</text><color>FFFFFFFF</color></BalloonStyle> 

Forgot to mention an important catch: how to convert a string to a console application in C #?

+4
source share
2 answers

This is HTML encoded, therefore:

 HttpUtility.HtmlDecode(myHtmlEncodedString); 

Link: http://msdn.microsoft.com/en-us/library/7c5fyk1k.aspx

+13
source
 HttpUtility.HtmlDecode(string) 
+1
source

Source: https://habr.com/ru/post/1347342/


All Articles