java - how to trim "enter key" in a string -
string strfckeditor1 = request.getparameter("fckeditor1");
string strfckeditor1 = request.getparameter("fckeditor1").replaceall("\\r|\\n", "");
you need replace \r
and/or \n\r
(hence regex), not \n
stated in other answer, since don't know whether user using windows / mac osx / linux.
Comments
Post a Comment