Reply to Re: Convert some files from html to plaintext

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация