On Jun 12, 5:13 am, "Mike Orr" <[EMAIL PROTECTED]> wrote:
> Although again, we have two issues.  One is HTML-to-text (essentially
> lynx-as-a-function).  The other is truncating an HTML string while
> keeping it well-formed (which means not stopping in the middle of a
> tag and closing any open tags).

Actually, I think we may have four issues...?

1) truncate HTML and end up with well-formed HTML.
2) strip all HTML tags (without an interest in text formatting)
3) html2text (trying to keep text formatting with p, block, etc.)
4) sanitizing HTML (not directly discussed here, but a good
implementation of this will be helpful, increase security, and should
be able to be extended trivially to provide #2, striping all HTML
tags).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to