I use this code:
Dim str= Web.HttpUtility.HtmlDecode("'")
But it not working.
Result : str="'"
" is on the official list of valid HTML 4 entities, but ' is not.
https://stackoverflow.com/a/2083770/831138
So you should probably do a correction (yourString.Replace("'",""")) before the Decode.