Select All

Script: (inline)
onclick="javascript:EditForm.EditingArea.focus();EditForm.EditingArea.select()"
HTML: Body
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="EditForm">

<textarea name="EditingArea" rows="10" cols="60" id="EditingArea" class="TextBox"></textarea>
<br />
<button type="button" onclick="javascript:EditForm.EditingArea.focus();EditForm.EditingArea.select()">Select All</button>

</form>

Delete All

Script: Head
<script language="JavaScript" type="text/javascript">
// Delete All by Micah Aills
// http://textcleaner.x10hosting.com/
// http://www.micahaills.com/
<!--

function DeleteText()
{
document.getElementById("EditingArea").value = "";
}

//-->
</script>
HTML: Body
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="EditForm">

<textarea name="EditingArea" rows="10" cols="60" id="EditingArea" class="TextBox"></textarea>
<br />
<button type="button" onclick="DeleteText()">Delete All</button>

</form>

Remove Line Breaks

Script: Head
<script language="JavaScript" type="text/javascript">
// Remove Line Breaks by K&L Productions
// http://www.webdeveloper.com/forum/showthread.php?t=15359
// http://www.klproductions.com/
<!--
String.prototype.stripBreaks = function()
{
var matchTag = /\s+/g;
return this.replace(matchTag, " ");
}

function RemoveBreaks()
{
var sourceInput = document.getElementById("EditingArea");
var destInput = document.getElementById("EditingArea");

destInput.value = sourceInput.value.stripBreaks();
}
//-->
</script>
HTML: Body
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="EditForm">

<textarea name="EditingArea" rows="10" cols="60" id="EditingArea" class="TextBox"></textarea>
<br />
<button type="button" onclick="RemoveBreaks()">Remove Line Breaks</button>

</form>

Remove HTML Tags

Script: Head
<script language="JavaScript" type="text/javascript">
// Remove HTML Tags by Andrew Pociu
// http://www.geekpedia.com/code20_Strip-HTML-using-JavaScript.html
// http://www.geekpedia.com/author1_Andrew-Pociu.html
<!--
String.prototype.stripHTML = function()
{
var matchTag = /<(?:.|\s)*?>/g;
return this.replace(matchTag, "");
};

function ShowStrippedText()
{
var sourceInput = document.getElementById("EditingArea");
var destInput = document.getElementById("EditingArea");

destInput.value = sourceInput.value.stripHTML();
}
//-->
</script>
HTML: Body
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="EditForm">

<textarea name="EditingArea" rows="10" cols="60" id="EditingArea" class="TextBox"></textarea>
<br />
<button type="button" onclick="ShowStrippedText()">Remove HTML Tags</button>

</form>

Remove Excess White Space

Script: Head
<script language="JavaScript" type="text/javascript">
// Spaces to Plus by Mike McGrath (mike_mcgrath@lineone.net)
// Web Site: http://website.lineone.net/~mike_mcgrath
// http://javascript.internet.com/forms/spaces-to-plus.html

// Modified to remove white space by Micah Aills
// http://textcleaner.x10hosting.com/

// This script and many more are available free online at
// The JavaScript Source!! http://javascript.internet.com
<!--
function convertSpaces(str) {
var out = "", flag = 0;
for (i = 0; i < str.length; i++) {
if (str.charAt(i) != " ") {
out += str.charAt(i);
flag = 0;
}
else {
if(flag == 0) {
out += " ";
flag = 1;
}
}
}
return out;
}
//-->
</script>
HTML: Body
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="EditForm">

<textarea name="EditingArea" rows="10" cols="60" id="EditingArea" class="TextBox"></textarea>
<br />
<button type="button" onclick="EditForm.EditingArea.value = convertSpaces(EditForm.EditingArea.value);">Remove Excess White Space</button>

</form>

Remove Tab Spaces

Script: Head
<script language="JavaScript" type="text/javascript">
// Remove Line Breaks by K&L Productions
// http://www.webdeveloper.com/forum/showthread.php?t=15359
// http://www.klproductions.com/

// Modified to remove tab spaces by Micah Aills
// http://textcleaner.x10hosting.com/
<!--
String.prototype.stripTabs = function()
{
var matchTag = /\t+/g;
return this.replace(matchTag, " ");
}

function RemoveTabs()
{
var sourceInput = document.getElementById("EditingArea");
var destInput = document.getElementById("EditingArea");

destInput.value = sourceInput.value.stripTabs();
}
//-->
</script>
HTML: Body
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="EditForm">

<textarea name="EditingArea" rows="10" cols="60" id="EditingArea" class="TextBox"></textarea>
<br />
<button type="button" onclick="RemoveTabs()">Remove Tab Spaces</button>

</form>

Convert to Lowercase

Script: Head
<script language="JavaScript" type="text/javascript">
// Convert Text to Lowercase
// http://javascript.internet.com/forms/all-lower-case.html
<!--
function makeLowercase()
{
document.EditForm.EditingArea.value = document.EditForm.EditingArea.value.toLowerCase();
}
//-->
</script>
HTML: Body
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="EditForm">

<textarea name="EditingArea" rows="10" cols="60" id="EditingArea" class="TextBox"></textarea>
<br />
<button type="button" onclick="makeLowercase();">Convert to Lowercase</button>

</form>

Convert Special Characters

Script: Body
<script language="JavaScript" type="text/javascript">
// Convert Special Characters by Bo Allen - bo@boallen.com
// http://www.boallen.com/clean-up-word-special-characters.html
<!--
function specialCharCleanup(specialchartext) {
specialchartext = escape(specialchartext);
if(document.getElementById('preservechar').checked){
specialchartext = specialchartext.replace(/%u201C/g, "&ldquo;");
specialchartext = specialchartext.replace(/%u201D/g, "&rdquo;");
specialchartext = specialchartext.replace(/%u2018/g, "&lsquo;");
specialchartext = specialchartext.replace(/%u2019/g, "&rsquo;");
specialchartext = specialchartext.replace(/%u2026/g, "&hellip;");
} else {
specialchartext = specialchartext.replace(/%u201C/g, "\"");
specialchartext = specialchartext.replace(/%u201D/g, "\"");
specialchartext = specialchartext.replace(/%u2018/g, "'");
specialchartext = specialchartext.replace(/%u2019/g, "'");
specialchartext = specialchartext.replace(/%u2026/g, "...");
}
specialchartext = specialchartext.replace(/%u2013/g, "&ndash;");
specialchartext = specialchartext.replace(/%u2014/g, "&mdash;");
specialchartext = specialchartext.replace(/%A9/g, "&copy;");
specialchartext = specialchartext.replace(/%AE/g, "&reg;");
specialchartext = specialchartext.replace(/%u2122/g, "&trade;");
specialchartext = unescape(specialchartext); document.getElementById('EditingArea').value = specialchartext; }
//-->
</script>
HTML: Body
<form method="post" action="" enctype="application/x-www-form-urlencoded" name="EditForm">

<textarea name="EditingArea" rows="10" cols="60" id="EditingArea" class="TextBox"></textarea>
<br />
<button type="button" onclick="specialCharCleanup(document.getElementById('EditingArea').value);">Convert to Lowercase</button>

<input type="checkbox" name="preservechar" id="preservechar" class="menu1_checkbox" /><label for="preservechar" id="pc_label">Preserve Entities</label>

</form>