From 6922e11e91b5a46507258c0e0050cdd39a925857 Mon Sep 17 00:00:00 2001
From: Coppertine <37494321+Coppertine@users.noreply.github.com>
Date: Thu, 15 Jun 2023 18:20:35 +1000
Subject: [PATCH 1/2] Implement BBCode parsing to medal solution
---
medals/js/functions.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/medals/js/functions.js b/medals/js/functions.js
index 76b7d6b..40403ec 100644
--- a/medals/js/functions.js
+++ b/medals/js/functions.js
@@ -382,8 +382,8 @@ async function loadMedal(strMedalName, updateAdminPanel = true) {
for (let i = 0; i < document.querySelectorAll("[selector='oMedalIcon']").length; i++) {
document.querySelectorAll("[selector='oMedalIcon']")[i].src = colMedals[strMedalName].Link;
}
- document.getElementById("strMedalSolution").innerHTML = colMedals[strMedalName].Solution;
- document.getElementById("strMedalSolution").innerHTML = document.getElementById("strMedalSolution").innerHTML.replace(/\n/g, "
")
+ document.getElementById("strMedalSolution").innerHTML = BBCodeParser.process(colMedals[strMedalName].Solution);
+ document.getElementById("strMedalSolution").innerHTML = document.getElementById("strMedalSolution").innerHTML.replace(/\n/g, "
");
var rarity = parseFloat(colMedals[strMedalName].Rarity);
//console.log(rarity);
document.getElementById("strMedalRarity").innerHTML = "
'; + }, + closeTag: function(params, content) { + return ''; + } + }, 's': { openTag: function(params,content) { return '