I working with a xml file. I get a string from it, and this string is encoding in html; I try to use HttpUtility.HtmlDecode but, it's not working... What am I missing? Screen
            Asked
            
        
        
            Active
            
        
            Viewed 98 times
        
    1 Answers
0
            
            
        nbsp; is an invalid HTMLEncoded entity,   is a valid 1 representing Non-Breaking Space.
Example
var aStr = @"<root> <children> <child1> This is   <b>bold</b>    </child1> <child2> This is nbsp; <b>bold</b> nbsp;nbsp; </child2></children> </root>";
var decoded = HttpUtility.HtmlDecode(aStr);
// decoded value "<root> <children> <child1> This is   <b>bold</b>    </child1> <child2> This is nbsp; <b>bold</b> nbsp;nbsp; </child2></children> </root>"
        ManiVI
        
- 556
 - 1
 - 5
 - 18