Skip to content

Commit cf0c553

Browse files
committed
Do not escape the <img> tag in text output for compatibility modes with RipURQ and URQ_DOS
1 parent 97aec02 commit cf0c553

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/Client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ Client.prototype.drawText = function () {
173173
// RipURQ and URQ_DOS do not support HTML
174174
if (['ripurq', 'dosurq'].includes(Game.getVar('urq_mode'))) {
175175
// <br> tag can be generated by #/$ construct from URQL code
176-
content = getEscapedHtmlWithAllowedTags(content, ['br']);
176+
// <img> tag can be generated by the image operator from URQL code
177+
content = getEscapedHtmlWithAllowedTags(content, ['br', 'img']);
177178
}
178179
var div = $('<div>').html(content);
179180

0 commit comments

Comments
 (0)