(xeb)
> ì=(xec)
> í=(xed)
> î=(xee)
> ï=(xef)
>
>
> In [19]:
>
> Thanks,
> Ray
>
>
>
> Frederic Rentsch wrote:
>
>> Rares Vernica wrote:
>>
>>> Hi,
>>>
>>> How can I unescape HTML entities like " &quo
> will not work as Python expects the file extension to be "py".
>
> Thanks,
> Ray
>
> Frederic Rentsch wrote:
>
>> Rares Vernica wrote:
>>
>>> Hi,
>>>
>>> How can I unescape HTML entities like " "
252 fc
ý=(xfd) # 253 fd
þ=(xfe)# 254 fe
é=(xe9)
ê=(xea)
ë=(xeb)
ì=(xec)
í=(xed)
î=(xee)
ï=(xef)
In [19]:
Thanks,
Ray
Frederic Rentsch wrote:
> Rares Vernica wrote:
>> Hi,
>>
>> How can I unescape HTML entities like " "?
>>
>> I know ab
e "py".
Thanks,
Ray
Frederic Rentsch wrote:
> Rares Vernica wrote:
>> Hi,
>>
>> How can I unescape HTML entities like " "?
>>
>> I know about xml.sax.saxutils.unescape() but it only deals with "&",
>> "<", and ">
Rares Vernica wrote:
> How does your code deal with ' like entities?
It doesn't, it deals with named entities only. But take a look
at Fredrik's example.
Cheers,
--
Klaus Alexander Seistrup
København, Danmark, EU
http://klaus.seistrup.dk/
--
http://mail.python.org/mailman/listinfo/python-l
Hi,
How does your code deal with ' like entities?
Thanks,
Ray
Klaus Alexander Seistrup wrote:
> Rares Vernica wrote:
>
>> How can I unescape HTML entities like " "?
>>
>> I know about xml.sax.saxutils.unescape() but it only deals with
>>
Thanks a lot for all the answers!
Ray
Frederic Rentsch wrote:
> Rares Vernica wrote:
>> Hi,
>>
>> How can I unescape HTML entities like " "?
>>
>> I know about xml.sax.saxutils.unescape() but it only deals with "&",
>> "<
Rares Vernica wrote:
> Hi,
>
> How can I unescape HTML entities like " "?
>
> I know about xml.sax.saxutils.unescape() but it only deals with "&",
> "<", and ">".
>
> Also, I know about htmlentitydefs.entitydefs, but no
Rares Vernica wrote:
> How can I unescape HTML entities like " "?
run it through an HTML parser.
or use something like this:
http://effbot.org/zone/re-sub.htm#strip-html
(if you want to keep elements, change the regular expression in the
re.sub call to "(?s)&#?
Rares Vernica wrote:
> How can I unescape HTML entities like " "?
>
> I know about xml.sax.saxutils.unescape() but it only deals with
> "&", "<", and ">".
>
> Also, I know about htmlentitydefs.entitydefs, but not only
Rares Vernica wrote:
> How can I unescape HTML entities like " "?
Can I ask what you mean by "unescaping"? Do you mean converting into
numeric references? Into Unicode?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
How can I unescape HTML entities like " "?
I know about xml.sax.saxutils.unescape() but it only deals with "&",
"<", and ">".
Also, I know about htmlentitydefs.entitydefs, but not only this
dictionary is the opposite of what I need,
12 matches
Mail list logo