[Developers] html entity encoding
brendan
brendan at metaweb.com
Fri May 2 17:05:53 UTC 2008
Yes the freebase mqlread service defaults to html escaping. But,
metaweb.py on google code actually reverses that; if you call it's
mqlread method, it has it's own escape param and if you don't specify
an arg, it will assume you want "escape":null. It's a little confusing.
Brendan
On May 1, 2008, at 4:03 PM, Arthur van Hoff wrote:
> 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 & -> & less than < -> <
>> greater than > -> >
>>
>> e.g.:
>>
>> "result": {
>> "/user/cotton/default_domain/broadcast/summary": "Soft, classic,
>> hard, and heavy rock & 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
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
More information about the Developers
mailing list