Fix replace all tags
This commit is contained in:
parent
dff9843c37
commit
1624192002
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user