![]() | | ||||||||
| | #1 |
| SEO Expert & Author War Room Member Join Date: Feb 2007 Location: Vancouver, WA USA
Posts: 486
Thanks: 201
Thanked 57 Times in 31 Posts
|
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 |
| | |
| | |
| | #2 |
| Senior Warrior Member War Room Member Join Date: Nov 2006 Location: , , .
Posts: 2,463
Thanks: 1,046
Thanked 1,120 Times in 373 Posts
|
Copy and paste it into notepad. It's not smart enough to understand the HTML or anything so you just get the text.
|
| | |
| | |
| | #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
|
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 | |
| | |
| | #4 |
| Promoter War Room Member Join Date: Oct 2008 Location: Uk
Posts: 456
Thanks: 156
Thanked 42 Times in 41 Posts
|
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 |
| | |
| | |
| | #5 |
| The dot is silent War Room Member Join Date: Jul 2003 Location: Sunny Sidcup, United Kingdom.
Posts: 1,739
Thanks: 140
Thanked 670 Times in 178 Posts
|
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.
| |
| | |
![]() |
|
| Tags |
| code, easily, html, strip |
| Thread Tools | |
| |
![]() |