See Html.Raw but make sure your database value does not contain XSS code.
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
gigglingdolp...
Member
3 Points
12 Posts
Using embedded html tags in view data
Jan 04, 2013 08:15 PM|LINK
In out database we store the following value in a columm:
BXD24/TyJ-Cep290<sup>rd16</sup>/J
the rd16 needs to be displayed as a superscript
when I load this value into the view data to be displayed in a razor view is displays:
BXD24/TyJ-Cep290<sup>rd16</sup>/J and does not recongnized the superscript tags
How would I get this to display in the correct format?
eric2820
Contributor
2777 Points
1161 Posts
Re: Using embedded html tags in view data
Jan 04, 2013 08:35 PM|LINK
I would suggest putting the superscript in a <span style="text-decroration: superscript">rd16</span>
http://www.my-msi.net/Admin
blog
If a post helps you, please mark it as Ansered, thank-you.
imran_ku07
All-Star
45864 Points
7713 Posts
MVP
Re: Using embedded html tags in view data
Jan 05, 2013 04:32 PM|LINK
See Html.Raw but make sure your database value does not contain XSS code.
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD