|
@@ -549,6 +549,8 @@ var formatText = (function() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ function htmlEntities(str) { return str.replace('<', "<"); }
|
|
|
|
|
+
|
|
|
function identity(a) { return a; }
|
|
function identity(a) { return a; }
|
|
|
|
|
|
|
|
function linkidentity(str) {
|
|
function linkidentity(str) {
|
|
@@ -573,7 +575,7 @@ var formatText = (function() {
|
|
|
_opts = {};
|
|
_opts = {};
|
|
|
opts.highlights = _opts.highlights || [];
|
|
opts.highlights = _opts.highlights || [];
|
|
|
opts.emojiFormatFunction = _opts.emojiFormatFunction || identity;
|
|
opts.emojiFormatFunction = _opts.emojiFormatFunction || identity;
|
|
|
- opts.textFilter = _opts.textFilter || identity;
|
|
|
|
|
|
|
+ opts.textFilter = _opts.textFilter || htmlEntities;
|
|
|
opts.linkFilter = _opts.linkFilter || linkidentity;
|
|
opts.linkFilter = _opts.linkFilter || linkidentity;
|
|
|
text = _text;
|
|
text = _text;
|
|
|
|
|
|