diff --git a/pages/_document.tsx b/pages/_document.tsx index 58ad69b..4a84627 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -28,7 +28,7 @@ class MyDocument extends Document { }} /> - +
diff --git a/pages/bots/[id].tsx b/pages/bots/[id].tsx index b73681e..de2d79a 100644 --- a/pages/bots/[id].tsx +++ b/pages/bots/[id].tsx @@ -33,7 +33,7 @@ const Bots: NextPage = ({ data, date }) => { : `https://cdn.discordapp.com/embed/avatars/${Number(data.tag) % 5}.png?size=1024` } /> -
+
= ({ data, date }) => { className='w-full' />
-
+
sanitizeHtml(html, { - allowedTags: false, - allowedAttributes: false + allowedTags: [ + 'addr', 'address', 'article', 'aside', 'h1', 'h2', 'h3', 'h4', + 'h5', 'h6', 'section', 'blockquote', 'dd', 'div', + 'dl', 'dt', 'hr', 'li', 'ol', 'p', 'pre', + 'ul', 'a', 'abbr', 'b', 'bdi', 'bdo', 'br', 'cite', 'code', 'data', 'dfn', + 'em', 'i', 'kbd', 'mark', 'q', 'rb', 'rp', 'rt', 'rtc', 'ruby', 's', 'samp', + 'small', 'span', 'strong', 'sub', 'sup', 'time', 'u', 'var', 'wbr', 'caption', + 'col', 'colgroup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'del', + 'img', 'svg', 'input' + ], + allowedAttributes: false, + disallowedTagsMode: 'escape' })} />