Comparing version 0.0.0 to 0.0.1
'use strict'; | ||
exports.nl2br = function(str, isXhtml) { | ||
exports = function(str, isXhtml) { | ||
var breakTag = (isXhtml || typeof isXhtml === 'undefined') ? '<br />' : '<br>'; | ||
return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); | ||
}; |
{ | ||
"name": "nl2br", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "A NodeJS module for converting newlines to line breaks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2564