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

Popular posts from this blog

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

mysql - How to insert just year and month into date field? -