convert newlines to <br> in title