I am working in desktop application. I have string which is display in formatelinklabel
control as HTML text. This HTML text contains special character like <
, >
and &
. Because of these character, it is not display properly as HTML text.
My string is like this :
<b>Details: </b> !"#$%'()*+,-/:;=?@[\]^_`{|}~&><)<br/> <b> Take: </b> test tab. <br/> <b> Quantity: </b> <br/><b> Days Supplied: </b> 90 <br/>
When i tried to display this string in control it is not display like HTML formatted text and its format is broken and display plain text.
So Can anyone tell me how to escape these characters and display HTML text properly?
Thanks in Advance.
Did you try to replace your special characters by their HTML code ?
For example, &
could be replaced by &
. I did it with a C# project and it worked, I suppose it could be the same with VB.NET
You can find all codes here