diff --git a/src/lib/components/PostCard.svelte b/src/lib/components/PostCard.svelte index cdc1dc0..33a19a2 100644 --- a/src/lib/components/PostCard.svelte +++ b/src/lib/components/PostCard.svelte @@ -45,9 +45,17 @@ let errorLike = $state(false); let contenido = $derived(() => { - let t = post.content.replaceAll('\n', '
'); - t = post.content.replaceAll('<', ''); - t = t.replace( + let t = ''; + t = post.content + .replaceAll('&', '&') + .replaceAll('<', '<') + .replaceAll('>', '>') + .replaceAll('"', '"') + .replaceAll("'", ''') + .replaceAll('fetch', ''); + + t = post.content.replaceAll('\n', '
'); + t = t.replaceAll( /#\p{L}*/u, (match) => `${match}`