I've created a functional search engine.
It's for an articles database.
And I only show the first 300 characters of the main body content.
And if there is a HTML tag in-between the 300 it shows for example <font color=...
And cuts if off right in the middle of that.
What I want it to do somehow is to avoid the HTML tags and not count them in the character count.