Jump to content

Convert some files from html to plaintext


lucavilla

Recommended Posts

I have many html files named like these:

 

c:\dir\femo-black.html

c:\dir\loren-white.html

c:\dir\spark-white.html

c:\dir\kim-black.html

c:\dir\paul-white.html

 

How can I convert only the files named "c:\dir\*-white.html" to plaintext files named c:\dir\(original filename)-text.txt?

 

Is there a PHP module that does a good quality conversion HTML to plaintext?

I assume you're talking about wanting something more than strip_tags function of PHP http://us2.php.net/manual/en/function.strip-tags.php

 

Do a google search. Here's one I found in a minute:

 

http://www.howtocreate.co.uk/php/dnld.php?file=0&action=1

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.