I have a string that has new lines in. I am wanting to convert these to HTML <br>s, but I'm having a hard time detecting them.
Imagine a JavaScript string set like this:
var foo = "Bob
is
cool";
They are the kind of new lines that I need to detect. They aren't using the \n special character - they are just plain format.