c# - JSON.NET encoding -


i have bbcode parser parse bbcode on server side html string , present result html end users using jquery on client side.

when return object using json.net's .serailizeobject, default, encodes html.

jsonconvert.serializeobject(mybbcodeobject, formatting.none) 

my original 'parsed" html string

<blockquote><p>test</p></blockquote> 

and json.net's serializer returns

&lt;blockquote&gt;&lt;p&gt;test&lt;&lt;/p&gt;&lt;/blockquote&gt; 

my question is, how prevent json.net html encoding "parsed" (a property mybbcodeobject) string?

the result is, have use jquery template's {{html}} decode them when presented user, , caused additional 4 seconds load time.

any advice appreciated it.

don't know how close thread, i'll answer own question.

thanks again @marc. it's .asmx web service encoding response. i'll use httphandler purpose.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -