diff --git a/src/shared/html-sanitizer.ts b/src/shared/html-sanitizer.ts
index 9cd50fc6..ea3d475b 100644
--- a/src/shared/html-sanitizer.ts
+++ b/src/shared/html-sanitizer.ts
@@ -6,37 +6,7 @@ function removeZalgoText(text: string): string {
return text.replaceAll(zalgoRegex, "");
}
-function decodeHtmlEntities(text: string): string {
- const entityMap: { [key: string]: string } = {
- "&": "&",
- "<": "<",
- ">": ">",
- """: '"',
- "'": "'",
- " ": " ",
- };
- return text.replaceAll(/&[#\w]+;/g, (entity) => {
- return entityMap[entity] || entity;
- });
-}
-
-function removeHtmlTags(html: string): string {
- let result = "";
- let inTag = false;
-
- for (const char of html) {
- if (char === "<") {
- inTag = true;
- } else if (char === ">") {
- inTag = false;
- } else if (!inTag) {
- result += char;
- }
- }
-
- return result;
-}
export function sanitizeHtml(html: string): string {
if (!html || typeof html !== "string") {