Edgewall Software

Ticket #150 (closed defect: fixed)

Opened 14 months ago

Last modified 12 months ago

genshi.utils.striptags fails on Comments

Reported by: aronacher Owned by: cmlenz
Priority: minor Milestone: 0.5
Component: General Version: 0.4.4
Keywords: Cc:

Description

Minor issue, but it can be fixed. The striptags function fails for comments. Because SGML comment parsing is rather awkward it's probably enough to change the regexp to this:

r'(<!--.*?-->|<[^>]*>)'

Failing example:

>>> from genshi.util import striptags
>>> striptags('<!-- <blub>hehe</blah> -->test')
'hehe -->test'

Attachments

Change History

Changed 12 months ago by cmlenz

  • status changed from new to closed
  • resolution set to fixed

Fixed in [771]. Thanks!

Changed 12 months ago by cmlenz

  • priority changed from major to minor

Add/Change #150 (genshi.utils.striptags fails on Comments)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.