Tinfonceing
New Member
I have a form with a textarea and a JS character counter. Yet the backend script claims that the strlen of the message is longer than the JS character counter claimed. The reason for this, I have discovered, is that the backend sees every newline character as \[code\]\r\n\[/code\] which is two characters.Can I simply have it do a \[code\]str_replace("\r\n","\n",$input)\[/code\]? Or will this cause windows-users to see the string all on one line? Is there any reason why I should not do this?