The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: "Thomas Jollans" <tho...@jollans.NOSPAM.com>
Date: Mon, 4 Jun 2007 17:14:56 +0100
Local: Tues, Jun 5 2007 2:14 am
Subject: Re: How do you htmlentities in Python
news:1180965792.757685.132580@q75g2000hsh.googlegroups.com...
> As far as I know, there isn't a standard idiom to do this, but it's '&(%s);' won't quite work: HTML (and, I assume, SGML, but not XHTML being > still a one-liner. Untested, but I think this should work: > import re XML) allows you to skip the semicolon after the entity if it's followed by a white space (IIRC). Should this be respected, it looks more like this: r'&(%s)([;\s]|$)' Also, this completely ignores non-name entities as also found in XML. (eg Regards, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||