[snip] I am trying to trim some text containing HTML tags. What I want to do is to trim the text without trimming the tags or html entities like and such, wich completelly break the design. Has anyone succeded on doing such a thing? phpclasses.org won't help :( [/snip] What do you mean, "trim some text containing HTML tags"? Can you give us some examples of what you are starting with and what you'd like to end up with? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php