function stringToArray(str) {
  lines = str.split(/<br>/gi)
  for(i = 0; i < lines.length; i++) {
    lines[i] = lines[i].trim();
  }
  return lines;
}
/*
 * stringToArray(str)
 *
 * Converts a HTML string to an array, splitting on break-row tags and
 * trimming each line's whitespace
 */
stringToArray(str)
Converts a HTML string to an array, splitting on break-row tags and
trimming each line's whitespace
stringToArray ( str ) Converts a HTML string to an array splitting on break - row tags and trimming each line ' s whitespace
function stringToArray(str) {
  lines = str.split(/<br>/gi)
  for(i = 0; i < lines.length; i++) {
    lines[i] = lines[i].trim();
  }
  return lines;
}
function stringToArray ( str ) { lines = str . split ( / <br> / gi ) for ( i = 0 ; i < lines . length ; i ++ ) { lines [ i ] = lines [ i ] . trim ( ) ; } return lines ; }
stringToArray(str)
 Converts a HTML string to an array, splitting on break-row tags and
 trimming each line's whitespace
stringToArray ( str ) Converts a HTML string to an array splitting on break - row tags and trimming each line ' s whitespace