I have a html-file, which I want to extract the some content, and not any tag's.
I thought I might start like this:
$file = file("test.html");
foreach ($file as $line) {
some code....
}
A example is this line is the file:
<tr><td class="felt">Car</td><td>Mercedes<br/></td></tr>
How can I get just 'Car' and 'Mercedes' from this line?
Has anyone got an idea? I really don't know where to go further...
Need help!
extract text from html-file
Moderator: General Moderators
-
torvald_helmer
- Forum Newbie
- Posts: 4
- Joined: Sun Nov 26, 2006 6:51 am
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA