184
edits
(fix for things without lore) |
(fix non-formatted item names and lore) |
||
Line 34: | Line 34: | ||
var spans = 0; | var spans = 0; | ||
var res = '' | var res = '' | ||
for (var i = | for (var i = 0; i < text.length; i++) { | ||
if (text[i] == '&') continue; | if (text[i] == '&') continue; | ||
else if (text[i] == '/') res += '<br>'; | else if (text[i] == '/') { | ||
res += '<br>'; | |||
continue; | |||
} | |||
else if (text[i - 1] == '&') { | else if (text[i - 1] == '&') { | ||
if (text[i] == 'r') { | if (text[i] == 'r') { |