showing results for - "javascript trim newline"
Fabian
28 Mar 2018
1str = str.replace(/^\s+|\s+$/g, '');