Given the following HTML “<b>demo</b>”
I want to save it to an SQL 2005 table
Mandatory, no encoded, no escaped characters in the saved field from database
Saved html must be as small as possible
On my efforts, my stored html is always saved as encoded > html
EDIT:
Debugging my code I found that my HTML string is sended encoded to my StoredProcedure. Server.HtmlDecode won’t entirely decode my HTML !
It’s TinyMCE fault.
A direct insert of an arbitrary varchar string should always work:
Now – the question is: what piece of code is encoding your markup???
Some starting places:
Try:
For space requirements: