mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
modificadas las reglas de como renderizo los posts
This commit is contained in:
@@ -45,9 +45,17 @@
|
||||
let errorLike = $state(false);
|
||||
|
||||
let contenido = $derived(() => {
|
||||
let t = post.content.replaceAll('\n', '<br>');
|
||||
t = post.content.replaceAll('<', '');
|
||||
t = t.replace(
|
||||
let t = '';
|
||||
t = post.content
|
||||
.replaceAll('&', '&')
|
||||
.replaceAll('<', '<')
|
||||
.replaceAll('>', '>')
|
||||
.replaceAll('"', '"')
|
||||
.replaceAll("'", ''')
|
||||
.replaceAll('fetch', '');
|
||||
|
||||
t = post.content.replaceAll('\n', '<br>');
|
||||
t = t.replaceAll(
|
||||
/#\p{L}*/u,
|
||||
(match) =>
|
||||
`<a class="hover:text-blue-200 text-blue-400" href="/htag/${match.replace('#', '')}">${match}</a>`
|
||||
|
||||
Reference in New Issue
Block a user