fix: return an empty string if markup is null or undefined
This commit is contained in:
parent
c984d3c4a2
commit
523d806b56
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ var encodeForm = function(text) {
|
|||
* The text with the tags stripped out.
|
||||
*/
|
||||
var stripTags = function (markup) {
|
||||
if (markup === null) return markup;
|
||||
if (!markup) return '';
|
||||
|
||||
var chars = String(markup).split('');
|
||||
var charCounter = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue