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