BBCodeParser icon indicating copy to clipboard operation
BBCodeParser copied to clipboard

get length undefined error

Open ralyodio opened this issue 10 years ago • 1 comments

Sometimes I pass in undefined or null, I know this is bad, but your script should not die on those errors.

parser.parseString(null, true);

ralyodio avatar May 12 '15 09:05 ralyodio

Seconded, although you could just pass in parser.parseString(text || "").

marksyzm avatar Nov 13 '15 23:11 marksyzm