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

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -