How to insert line break after every 80 characters
javascript
Solution
Do it with `long_string.replace(/(.{80})/g, "$1<br>");`
Check it here: http://jsfiddle.net/x2YJp/
Problem
I have a very long string. I want to append `<br/>` after every 80 characters so it can displayed nicely in the inner HTML. Is there any easy way?