Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 03-31-2009, 02:43 PM   #1
SEO Expert & Author
War Room Member
 
JustaWizard's Avatar
 
Join Date: Feb 2007
Location: Vancouver, WA USA
Posts: 486
Thanks: 201
Thanked 57 Times in 31 Posts
Social Networking View Member's Twitter Profile 
Default Is there a way to easily strip out HTML code?

Hi Warriors - sometimes I need to grab a bunch of text from one of my web pages, but when I cut and paste anywhere (word, textpad, etc.) along comes all the HTML code.

Do you know an easy way or a free tool to easily strip out the code so I can have just the text?

Thanks!

David

JustaWizard is offline   Reply With Quote
Old 03-31-2009, 02:48 PM   #2
Senior Warrior Member
War Room Member
 
Andy Fletcher's Avatar
 
Join Date: Nov 2006
Location: , , .
Posts: 2,463
Thanks: 1,046
Thanked 1,120 Times in 373 Posts
Contact Info
Send a message via AIM to Andy Fletcher Send a message via MSN to Andy Fletcher Send a message via Skype™ to Andy Fletcher
Default Re: Is there a way to easily strip out HTML code?

Copy and paste it into notepad. It's not smart enough to understand the HTML or anything so you just get the text.

Andy Fletcher is online now   Reply With Quote
Old 03-31-2009, 04:59 PM   #3
copy and paste geek
War Room Member
 
Join Date: Jan 2005
Location: Calgary
Posts: 1,390
Thanks: 68
Thanked 168 Times in 140 Posts
Default Re: Is there a way to easily strip out HTML code?

That problem used to bug me with xp and I had a light program I downloaded that would do it with a click. Can't remember anything about it though, like a name or anything that would help find it.

In Word 07 after you paste text there is a small "paste options" icon at the right of the bottom line of the paste that only stays there until you do something else. If you click it one of the options you can select is "text only." Works beautifully.

There are 10 types of people, those that understand binary and those that don't.
The KimW WSO
Lloyd Buchinski is online now   Reply With Quote
Old 03-31-2009, 05:03 PM   #4
Promoter
War Room Member
 
steve m's Avatar
 
Join Date: Oct 2008
Location: Uk
Posts: 456
Thanks: 156
Thanked 42 Times in 41 Posts
Default Re: Is there a way to easily strip out HTML code?

copy then paste it into note pad. notepad takes out all formatting. Then just recopy from the notepad and then paste it to where you originally wanted to paste it. I had a problem with when I was buying articles and pasting them directly into wordpress the text was very small. Thats when I was told to paste it in notepad first to remove all formatting first.

Steve

steve m is offline   Reply With Quote
Old 03-31-2009, 05:08 PM   #5
The dot is silent
War Room Member
 
Martin.Avis's Avatar
 
Join Date: Jul 2003
Location: Sunny Sidcup, United Kingdom.
Posts: 1,739
Thanks: 140
Thanked 670 Times in 178 Posts
Default Re: Is there a way to easily strip out HTML code?

Create a text file with the folowing line:

<?php echo strip_tags(file_get_contents('http://www.example.com/')); ?>

Then save the file to a domain, changing the example.com to whatever web page you want to look at.

Run the script and the contents of the page will be output to the screen with all the html removed.

You may need to get a bit cleverer with your php if the page has javascript on it.

Martin

Amazing Gold Mine - Calling Amazon Affiliates - Can't find the best products to sell? Amazing Gold Mine uncovers the hidden gems on Amazon for you.
Martin.Avis is online now   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
code, easily, html, strip

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:09 PM.