Text Cleaner - Remove Newlines from Text and Articles
Do you have a bunch of old articles stored on your computer with hard linebreaks?
These newline characters make it a real pain to upload your articles to your own site through a CMS or to article submission directories. They want free-flowing text that gets broken up automatically by the browser.
If you need to get rid of these newline characters, use the Text Cleaner form below. It works very simply.
Copy and paste your article with newline characters into the top textarea box. Click the button. Copy and paste the cleaned text out of the lower box.
Note: The text cleaner preserves a sequence of “\n\n.” It is assumed that these double newline characters are paragraph breaks, and removing them would make the article illegible.







Rob said this on February 22nd, 2008 at 5:42 pm
This tool will be great if we can fine tune it a little. Right now it’s combining words in the output.
Thanks!
Walkere said this on February 22nd, 2008 at 7:04 pm
That was a simple and incredibly stupid oversight. I was replacing the newline characters with an empty string.
Considering that there usually wouldn’t be a space before or after the newline (since it was being used as a hard line break), a space should have been inserted instead.
Should be fixed now… =)
Don’t hesitate to make any suggestions. I’d like to develop this to have a little more functionality, but I’m not sure where to take it first.
Rob said this on March 12th, 2008 at 4:32 pm
I’m not the best html developer in the world. What would it take to copy this page you have and replicate it on my domain?
Thanks!
Walkere said this on March 12th, 2008 at 7:06 pm
It’s a pretty simple concept. All of the code is done through HTML/Javascript - so you can access it all by viewing the source.
Look at the source of this page to see how the form is constructed, then look in the source for the location of “form-cleaner.js”. That contains all the javascript to do the actual text-cleaning.