Another alternative could be using BeautifulSoup to find all tags in the
data and replace all non-approved tags with nothing.

Oscar

On Mon, Jan 21, 2008 at 04:03:54PM -0700, Jeff Anderson wrote:
> If you've already looked at the regular bunch: textile, markdown, rst, 
> etc...
> And you just need minimal functionality,
> You could probable write up a small hack to do it with some regular 
> expressions. You can find things that strip html, and then you could to the 
> simple markup fairly easily after that. It shouldn't take too long to write 
> something like that.
>
> It is also possible that some of the existing things may be able to either 
> disable the extras you don't need, or you could modify them to just skip 
> the code for those features.
>
> Jeff Anderson
>
> Rob Hudson wrote:
>> Hi,
>>
>> I'm looking for something along the lines of Textile or Markdown, but
>> with very minimal features.  Does anyone know of other projects that
>> might fit these requirements?
>>
>> * Strip all HTML
>> * Only allow for simple markup (bold, italics, headers, lists, URLs or
>> auto-linking URLs)
>> * Do not allow things like images, tables, classes or styles
>>
>> Thanks,
>> Rob
>> --~--~---------~--~----~------------~-------~--~----~
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com
>> To unsubscribe from this group, send email to [EMAIL PROTECTED]
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en
>> -~----------~----~----~----~------~----~------~--~---
>>
>>   
>
>


Attachment: pgp2h4iYpYxhe.pgp
Description: PGP signature

Reply via email to