I need a simple php text reformatting program to clean
up ugly emails before forwarding.
All it needs to do is:
1.) Have three fields and a button to click.
2.) Field one is where the text to be reformatted
3.) Field two is where the reformatted text
appears so it can be copied.
4.) Field three is where how many characters per
line is entered.
5.) The button is clicked when text is pasted
into field one and the results are displayed
in field two for copying.
6.) The only valid ascii characters to be
shown in field two are:
' ', ',', '!', '?', '.', ':', ';'
7.) All other characters not in the list in
#6 are to be removed.
8.) Output lines should not exceed characters
per line in field three.
9.) All capitalized letters should be output
in lower case except for the first word of
10.) Excess white space should be eliminated. For example,
"the quick brown fox jumped" would end up as:
"the quick brown fox jumped" by removing the extra spaces