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
<blockquote><p>test<</p></blockquote>
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
Post a Comment