diff --git a/src/status.ts b/src/status.ts
index dc1c58c..b1808f8 100644
--- a/src/status.ts
+++ b/src/status.ts
@@ -5,6 +5,7 @@ import { linkFixer } from './linkFixer';
import { colorFromPalette } from './palette';
import { renderPoll } from './poll';
import { handleQuote } from './quote';
+import { sanitizeText } from './utils';
export const handleStatus = async (
status: string,
@@ -109,7 +110,7 @@ export const handleStatus = async (
``,
``,
``,
- ``
+ ``
);
} else {
console.log('Media available');
@@ -194,7 +195,7 @@ export const handleStatus = async (
headers.push(
``,
- ``
+ ``
);
}
diff --git a/src/utils.ts b/src/utils.ts
index f041ce1..3343bd1 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -1,9 +1,3 @@
-// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb
-
-const componentToHex = (component: number) => {
- let hex = component.toString(16);
- return hex.length === 1 ? '0' + hex : hex;
-};
-
-export const rgbToHex = (r: number, g: number, b: number) =>
- `#${componentToHex(r)}${componentToHex(g)}${componentToHex(b)}`;
+export const sanitizeText = (text: string) => {
+ return text.replace(/\"/g, '"').replace(/\/g, '>');
+}
\ No newline at end of file