I want to display some TextArea information in a DIV tag...I need to remove the hard returns stored in the DB however to make things show up correctly...
tried this to remove white space, but did not work...any suggestions?
thanks.
"...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..."
tried this to remove white space, but did not work...any suggestions?
thanks.
Code:
function remove(str){
return str.replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ");
}
"...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..."