Message20293
| 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:34 | admin | link | issue921657 messages |
| 2007年08月23日 14:20:34 | admin | create |
|