In the context of a user input from a textfield, how do you remove extra carriage returns and replace the remaining one with an html paragraph tag? To make it more concrete, the user enters sentence1, then hit Enter serveral times before inputting sentence2. You want to display the two sentences with a separated by a newline in an html format.
Thanks in advance :)
btw, the xp thingy has gone deranged.
In reply to Removing extra carriage returns... by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |