How To Replace All Line Breaks With <br /> Using JavaScript
erics, April 16th, 2012
1 |
yourUpdatedVar = yourOriginalVar.replace(/\n/g, '<br />'); |
1 |
yourUpdatedVar = yourOriginalVar.replace(/\n/g, '<br />'); |
Delete all comment lines: :g/^#/d Delete all blank lines: :g/^$/d