diff --git a/client/src/components/GiftTemplate/templates/TextType.ts b/client/src/components/GiftTemplate/templates/TextType.ts index b250637..5b206ed 100644 --- a/client/src/components/GiftTemplate/templates/TextType.ts +++ b/client/src/components/GiftTemplate/templates/TextType.ts @@ -16,17 +16,8 @@ function formatLatex(text: string): string { ); } -function escapeHTML(text: string) { - return text - .replace(/&/g, '&') - .replace(//g, '>') - .replace(/"/g, '"') - .replace(/'/g, '''); -} - export default function TextType({ text }: TextTypeOptions): string { - const formatText = formatLatex(escapeHTML(text.text.trim())); + const formatText = formatLatex(text.text.trim()); switch (text.format) { case 'moodle':