Re: generating an html intro text ...
| From: | Daniel Brown | Date: | Fri, 15 Jun 2007 14:06:13 +0000 |
| Subject: | Re: generating an html intro text ... | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257065@lists.php.net to get a copy of this message | ||
On 6/15/07, Jochem Maas <jochem@iamjochem.com> 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, JochemNot 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