On May 8, 2009, at 1:09 PM, Summer wrote:

> Hello,
>
> I previously inquired about stripping certain "html" entities, but  
> that proved ineffectual in the long run. I have found that the  
> database has all sorts of muck in it that really messes with  
> truncated display. Suffice to say.
>
> Is there a good way to get a chunk of data - in this case, a long  
> text string and strip all html from it? or everything and including  
> what is between the brackets <>
>
> Please advise. I apologize for the noob questions.

One of these ought to do the trick depending on your needs:

  http://search.cpan.org/perldoc?HTML::Truncate

  http://search.cpan.org/perldoc?HTML::Obliterate

  http://search.cpan.org/perldoc?HTML::Strip

HTH :)

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to