homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bernd_zedv
Recipients
Date 2004年03月23日.10:17:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
when this - obviously correct html - is parsed:
<a href=mailto:xyz@domain.com>xyz</a>
this exception is raised:
HTMLParseError: junk characters in start 
tag: '@domain.com>', at line 1, column 1
I work around this by adding '@' to the
allowed character's class:
import HTMLParser
HTMLParser.attrfind = re.compile(
 r'\s*([a-zA-Z_][-.:a-zA-Z_0-9]*)(\s*=\s*'
 r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./,:;+*%?!&$\(\)
_#=~@]*))?')
myparser = HTMLParser.HTMLParser()
myparser.feed('<a ... ')
History
Date User Action Args
2007年08月23日 14:20:34adminlinkissue921657 messages
2007年08月23日 14:20:34admincreate

AltStyle によって変換されたページ (->オリジナル) /