Unexpected result when str is null (#313)
Unexpected result when str is null (#313)

* Unexpected result when str is null

Some lattest browsers when str is null return and unexpected null value

* Update nl2br.js

* correct typo 'lattest'

* Update nl2br.js

add test

* Update nl2br.js

codding standards

kvz/phpjs,kvz/phpjs,kvz/phpjs,kvz/phpjs