mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix token counter chunk sanitation
This commit is contained in:
@ -101,7 +101,9 @@ function drawChunks(chunks, ids) {
|
||||
}
|
||||
|
||||
const color = pastelRainbow[i % pastelRainbow.length];
|
||||
const chunkHtml = $(`<code style="background-color: ${color};">${chunk}</code>`);
|
||||
const chunkHtml = $('<code></code>');
|
||||
chunkHtml.css('background-color', color);
|
||||
chunkHtml.text(chunk);
|
||||
chunkHtml.attr('title', ids[i]);
|
||||
$('#tokenized_chunks_display').append(chunkHtml);
|
||||
}
|
||||
|
Reference in New Issue
Block a user