On 6/15/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
Daniel Brown wrote:

...

Dan,

I don't want to put a downer on things, especially considering the
ammount of time/energy you spent writing the code you posted. ... but
this is not exactly what I was looking for.

I guess my feable attempt at explaining myself was rather off the mark.

I'm looking for code that will take an HTML string and give me back a
truncated string which still contains 'valid' HTML - the idea being to make an
intro text from a longer article (that is stored as HTML).

I'm a little confused why the html santizing couldn't be done with a simple 
strip_tags()?
are we on the same page? have I missed something?

rgds,
Jochem



   Not a downer at all, Jochem.  I probably misread what you were
asking for.  However, in the process of doing it, I found three places
just yesterday where I could add that file as an include, call that
one function [htmlstr();] and reduce several other lines of code.  So
I'm sorry that it didn't work for you, but it actually did come in use
somewhere, which I may not have even done if it weren't for my
misunderstanding of your needs.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to