Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.0.23] Flux::Profile - Special Characters Not Displayed Correctly #707

Open
jlcara opened this issue Nov 21, 2024 · 0 comments
Open

[1.0.23] Flux::Profile - Special Characters Not Displayed Correctly #707

jlcara opened this issue Nov 21, 2024 · 0 comments

Comments

@jlcara
Copy link

jlcara commented Nov 21, 2024

Description

Special characters such as apostrophes and ampersands are not rendered correctly when displaying a variable name in the profile component. Instead, they appear as HTML entities (e.g., ' for apostrophes and & for ampersands).

Steps to Reproduce

@php
    $name = "flux's components"
@endphp

<flux:profile
    avatar="https://fluxui.dev/img/demo/user.png"
    name="{{ $name }}" />

Expected Behavior

flux's comp...

Actual Behavior

flux&#039;s comp...

Image

Fix editing profile.blade.php

Wrap $name with html_entity_decode

...

    <?php if ($name): ?>
        <span class="ml-2 text-sm text-zinc-500 dark:text-white/80 group-hover:text-zinc-800 group-hover:dark:text-white font-medium truncate">
            {{ html_entity_decode($name) }}
        </span>
    <?php endif; ?>

...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant