diff --git a/src/js/script.js b/src/js/script.js
index 75ab1e415..d75467280 100644
--- a/src/js/script.js
+++ b/src/js/script.js
@@ -668,6 +668,10 @@ async function initWords() {
}
randomQuote = rq;
randomQuote.text = randomQuote.text.replace(/ +/gm, " ");
+ randomQuote.text = randomQuote.text.replace(/\\\\t/gm, "\t");
+ randomQuote.text = randomQuote.text.replace(/\\\\n/gm, "\n");
+ randomQuote.text = randomQuote.text.replace(/\\t/gm, "\t");
+ randomQuote.text = randomQuote.text.replace(/\\n/gm, "\n");
randomQuote.text = randomQuote.text.replace(/( *(\r\n|\r|\n) *)/g, "\n ");
let w = randomQuote.text.trim().split(" ");
for (let i = 0; i < w.length; i++) {
@@ -4069,6 +4073,8 @@ $("#customTextPopup .button").click(() => {
// text = text.replace(/[\r]/gm, " ");
text = text.replace(/\\\\t/gm, "\t");
text = text.replace(/\\\\n/gm, "\n");
+ text = text.replace(/\\t/gm, "\t");
+ text = text.replace(/\\n/gm, "\n");
text = text.replace(/ +/gm, " ");
// text = text.replace(/(\r\n)+/g, "\r\n");
// text = text.replace(/(\n)+/g, "\n");
diff --git a/static/index.html b/static/index.html
index 544576a33..c38ab5454 100644
--- a/static/index.html
+++ b/static/index.html
@@ -1592,11 +1592,6 @@