close tags in a html-snippet

/ Published in: PHP
Save to your folder(s)

suppose you have some html-formatted text of which you would like to show the first 45 characters.
This function closes any tags that are not-closed because of cutting the first 45 characters.

Note that tags are also counted when defining the first 45 characters!

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.