[Developers] html entity encoding

Arthur van Hoff AVH at zing.net
Thu May 1 23:03:23 UTC 2008


Hi Christopher,

You need to set 'escape':false in the query envelope (i.e. not in the
query itself).
The default is 'escape':'html'.

Have fun,

    Arthur van Hoff

> -----Original Message-----
> From: developers-bounces at freebase.com [mailto:developers-
> bounces at freebase.com] On Behalf Of Christopher Dummy
> Sent: Thursday, May 01, 2008 3:58 PM
> To: Freebase Developers
> Subject: [Developers] html entity encoding
> 
> I've noticed that the results I get back from mqlread's are HTML
> encoded. But when I send the writes via mqlwrite they should not be
> encoded, as the items get auto encoded when I retrieve them back. I
> would have expected it to be the same going both ways.
> 
> Is there a way to turn of the HTML entity encoding? or at least to
> find out what entities are being encoded? I've tried searching for
> the
> information but cannot find anything.
> 
> I know it at least does ampersand &  -> &amp;  less than  <  ->  &lt;
> greater than >  ->  &gt;
> 
> e.g.:
> 
> "result": {
>     "/user/cotton/default_domain/broadcast/summary": "Soft, classic,
> hard, and heavy rock &amp; metal, with modern and traditional blues",
>     "id": "/guid/9202a8c04000641f8000000006e55e81"
>   }
> 
> --
> Christopher Cotton
> Zing/Dell Engineer
> http://zing.net/
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers


More information about the Developers mailing list