Wed, 07/19/2006 - 14:26
If you cut a html-formatted string at some random position (e.g. with my truncate() function) you might mess up the html. To circumvent that, this function will close all open tags at the end of the string:
This Blog and all Code Snippets are licensed under a Creative Commons Attribution 4.0 License.
Milianw.de by Milian Wolff, powerd by Drupal. This page should be valid XHTML 1.0 strict and valid css.