fix markup escaping. fixes #268
This commit is contained in:
parent
bb51eb7120
commit
00058ab315
@ -92,7 +92,13 @@
|
|||||||
|
|
||||||
nextUid=(function() { var counter=1; return function() { return counter++; }; }());
|
nextUid=(function() { var counter=1; return function() { return counter++; }; }());
|
||||||
|
|
||||||
function escapeMarkup(markup) { return markup.replace("&", "&"); }
|
function escapeMarkup(markup) {
|
||||||
|
if (typeof(markup) === "string") {
|
||||||
|
return markup.replace("&", "&");
|
||||||
|
} else {
|
||||||
|
return markup;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function indexOf(value, array) {
|
function indexOf(value, array) {
|
||||||
var i = 0, l = array.length, v;
|
var i = 0, l = array.length, v;
|
||||||
|
Loading…
Reference in New Issue
Block a user