> > You could parse the input with elementree or beautifulsoup and then filter 
> > out 
> > all tags except the ones you want.  You could wrap all that logic up in a 
> > validator.  This is what i did for my blog.  Not sure if it is the most 
> > efficient, but it's a sure bet more maintainable than constructing just the 
> > right regular expression, IMHO.
> 
> Do you perhaps have an example of that code online? If not, no worries!

Here is how a really similar thing is performed in TurboBlog:

http://turboblog.devjavu.com/projects/turboblog/browser/trunk/turboblog/model.py#L867

look at the check_tags function.

regards,
Florent.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to