set empty string default value
This commit is contained in:
parent
9e04379d9c
commit
6e19a1030f
@ -31,6 +31,8 @@ define(
|
||||
}
|
||||
|
||||
function markdownLinksToHtml ( str, options ) {
|
||||
str = str || '';
|
||||
|
||||
var attributes = [ ];
|
||||
var attributeStr = '';
|
||||
|
||||
@ -54,6 +56,7 @@ define(
|
||||
}
|
||||
|
||||
function autop ( str, options ) {
|
||||
str = str || '';
|
||||
var tag = ( options && options.tag ) ? options.tag : 'p';
|
||||
var lineBreakTag = ( options && options.linebreak ) ? '<' + options.linebreak + '>' : '<br />';
|
||||
var startTag = '<' + tag + '>';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user