mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
las bio vuelven a renderizar html
This commit is contained in:
@@ -22,6 +22,17 @@
|
||||
let image: File | null = $state(null);
|
||||
let usu = $state({ displayName: data.displayName, bio: data.bio });
|
||||
|
||||
let contenido = $derived(() => {
|
||||
let t = data.bio
|
||||
.replaceAll('&', '')
|
||||
.replaceAll('<', '')
|
||||
.replaceAll('>', '')
|
||||
.replaceAll('fetch', '')
|
||||
.replaceAll('\n', '<br>');
|
||||
|
||||
return t;
|
||||
});
|
||||
|
||||
async function cambiarFotoDePerfil() {
|
||||
const input = document.createElement('input');
|
||||
input.type = 'file';
|
||||
@@ -92,7 +103,8 @@
|
||||
</h1>
|
||||
{#if usu.bio}
|
||||
<p class="mt-4 rounded-4xl bg-accent p-4 text-center text-muted-foreground">
|
||||
{usu.bio.replaceAll('<', '')}
|
||||
{@html contenido()}
|
||||
<!-- {usu.bio.replaceAll('<', '')} -->
|
||||
<!-- {@html usu.bio.replaceAll('\n', '<br>')} -->
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user