Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

Replace HTML Tags (GPL)

"Replace_HTML_Tags.bash" is a BASH script that will replace all HTML tags with a string of your choice. Given a HTML string and a substitution string, this script replace the HTML tags and outputs the resulting text with the substituted string.

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

Usage

  Replace_HTML_Tags.bash "HTML string" "substitute string"

Use a '-' in place of the HTML string to read from standard input (pipe).

Examples

  $ Replace_HTML_Tags.bash "<p>hello<br>world</p>" " "
hello world

$ echo "<p>Hello<br>world</p>" | Replace_HTML_Tags.bash - " "
Hello world

Attached File: Replace_HTML_Tags.bash (791 B)

Chieh Cheng
Tue, 27 Mar 2012 00:35:37 +0400

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

Title: Strip HTML Tags (GPL)
Weblog: Cynosure.X International
Excerpt: "Remove_HTML_Tags.sh" is a Bourne shell script that will remove and strip-away all HTML tags on a line or in a passage. Given a string, this script removes the HTML tags and outputs the resulting text without the HTML tags. "Remove_HTML_Tags.sh" is distributed as executable source code under the GNU . . .
Tracked: Tue, 27 Mar 2012 00:43:13 +0400

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 7 + 5?
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

41 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.