Don't encode anchor tags

This commit is contained in:
Tarrgon
2025-09-09 19:26:16 -04:00
parent 6adc431823
commit 8d9bbf57c4
+1 -1
View File
@@ -199,7 +199,7 @@ async function wikiPageHandler(message: Message, matchedGroups: RegExpExecArray[
let content = '';
for (const group of matchedGroups) {
content += `<${config.E621_BASE_URL}/wiki_pages/${encodeURIComponent(group[1])}>\n`;
content += `<${config.E621_BASE_URL}/wiki_pages/${group[1].split('#').map(t => encodeURIComponent(t)).join('#')}>\n`;
}
if (content.trim().length > 0) return content.trim();