On Wed, 2006-09-27 at 09:09 +0200, Gábor Farkas wrote:
> hi,
> 
> i have the following problem:
> 
> 
> in a page-template, i have to display the first 100 characters of some 
> html content.
> 
> the problem is, that if i simply slice the html-content as if it were 
> plaintext, then sometimes some tags get cut in the half etc...
> 
> so, is there a way to do this slicing without losing html-validness?
> 
> or perhaps, is there some library, that "fixes" invalid (x)html?

One attempt to solve this is in ticket #2027. You could use that. It
doesn't have to be in core to be used, so you can use it as is right now
until it gets evaluated one way or the other.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to