Decode HTML string where ampersands are encoded as \\x26

I got a string from html like:

var htmlStr = " \\x26lt;span\\x26gt; \\x26lt;/span\\x26gt;";

I can't decode it to C# string like:

 <span> </span>

If I modify the string to

var htmlStr = " \x26lt;span\x26gt; \x26lt;/span\x26gt;";

It works good. But how can I do it by replacing string or others way?

BTW, I use Encoding.UTF8.


Click here view more answers http://ift.tt/1Jfjf2f