Cynosure.X International

:

Add Comment | Related Links | TrackBack
Related Content

Extract HTML Tag (GPL)

"Extract_HTML_Tag.php" is a PHP command-line script that helps you extract a particular HTML tag that you specify. For example, if you want to see all "<tr>" tags and their content, you specify "tr" to "Extract_HTML_Tag.php" to output all "<tr>" tags with their contents. The resulting lines are joined on a single output line.

"Extract_HTML_Tag.php" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Usage


Extract_HTML_Tag.php "file" "tag"

Examples


$ cat t.txt
<table>
<tr valign="top">
<td>
Column 1
</td>
<td>
Column 2
</td>
</tr>
<tr>
<td>
Data A
</td>
<td>
Data B
</td>
</tr>
</table>

$ Extract_HTML_Tag.php "t.txt" "tr"
<tr valign="top"> <td> Column 1 </td> <td> Column 2 </td> </tr> <tr> <td> Data A </td> <td> Data B </td> </tr>

Attached File: Extract_HTML_Tag.txt (1 KB)

Chieh Cheng
Tue, 30 Aug 2011 18:15:23 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

Send Ping | TrackBack URL | Spam Control

Title: Mary
Weblog: Mary
Excerpt: Extract HTML Tag (GPL)
Tracked: Sun, 15 Jan 2012 03:36:36 +0300

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 3 - 3?
Click button only once, please!

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

20 Users Online

Hacking Digital Cameras
Fun for Photographers


Amazon Associate

Copyright © 1996 - 2017. All Rights Reserved.