Fix replace all tags

This commit is contained in:
Victor 2015-12-09 11:31:16 +02:00
parent dff9843c37
commit 1624192002

View File

@ -260,8 +260,8 @@ Views.prototype.formatString = function (tag, text) {
for (var i = 0; i < codes.length; i++) {
var ch = codes[i];
if (edited.contains("{"+ch+"}")) {
edited = edited.replace("{"+ch+"}", "<"+ch+">");
edited = edited.replace("{/"+ch+"}", "</"+ch+">");
edited = edited.replaceAll("{"+ch+"}", "<"+ch+">");
edited = edited.replaceAll("{/"+ch+"}", "</"+ch+">");
html = true;
}
}