User-1330468790 posted
Hi JamieP1,
The encoding works well from database to webpages as '<p>Hi </p>' to '<p>Hi</p>'.
Actually, the text is rendered as a html format in a html page but it does not mean the wrapper '<p></p>' disappears.
'<', '>' are common special characters. If you fetch the value directly from the page as a html formatted text, you will probably meet an encoding problem.
Could you please tell me how you use google to search for this product (as a string 'Hi')?
If you are using a HttpWebRequest and append the 'product' as a query string, you might need to encode the text again using
HttpServerUtility.UrlEncode
, which
URL-encodes a string and returns the encoded string.
Reference:
https://www.w3schools.com/tags/ref_urlencode.ASP
https://en.wikipedia.org/wiki/Percent-encoding
Best regards,
Sean