diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 2853924ea..22f2aafbc 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -784,6 +784,7 @@ Options include: _canonical_uri: optional string of the canonical URI of this content */ exports.parseText = function(type,text,options) { + text = text || ""; options = options || {}; // Select a parser var Parser = $tw.Wiki.parsers[type];