From 60a9f47f9117c4188f5eae26642b79bc8d8f7c74 Mon Sep 17 00:00:00 2001 From: sD Date: Sat, 4 Apr 2020 14:34:28 +0200 Subject: use prepChat for music and more in general --- webAO/encoding.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'webAO/encoding.js') diff --git a/webAO/encoding.js b/webAO/encoding.js index 76e0b6d..3249617 100644 --- a/webAO/encoding.js +++ b/webAO/encoding.js @@ -82,4 +82,13 @@ export function decodeChat(estring) { } else { return estring; } +} + +/** + * XXX: a nasty hack made by gameboyprinter. + * @param {string} msg chat message to prepare for display + */ +export function prepChat(msg) { + // TODO: make this less awful + return unescapeChat(decodeChat(msg)); } \ No newline at end of file -- cgit