[Phpwm] Truncating HTML with PHP

Mike Tipping mike at etuna.co.uk
Mon Jun 8 14:04:21 UTC 2009


I need to be able to take the fists 400 characters of some html formatted
text and incorporate it in a second HTML page so it doesn't beak the page,
ie not have unclosed <p> or <span> tags etc.

Does anyone know of an easy way of doing this in PHP or am I going to have
to start counting tags myself?

Cheers


Mike





More information about the Phpwm mailing list