|
Posted by Oli Thissen on 11/11/07 20:43
On Nov 11, 8:58 pm, Luca Villa <lucavi...@cashette.com> wrote:
> > See this:
>
> > <http://www.php.net/strip_tags>
>
> Isn't there something of higher quality, like the rendering engine of
> the textual browser Lynx?
I guess you dont't simply want to remove all the tags. You rather want
to make sure, that the content of your <h1>-element is followed by an
empty line or that your <p>-elements are indented, etc.
This might seem a little oversized, but if all of your files have the
same structure, you might want to create an XSLT and have PHP
transform it to whatever strucure you prefer.
Check out the PHP manual here http://www.php.net/ref.xsl and maybe
this tutorial on XSLT http://www.w3schools.com/xsl/
Oli
Navigation:
[Reply to this message]
|