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

Charectars converted to Unicode Decimal Code In Alpine JS Javascript Components #261

Closed
arceoh opened this issue Aug 23, 2022 · 1 comment

Comments

@arceoh
Copy link

arceoh commented Aug 23, 2022

Issue description:

When using Alpine JS a few characters get converted to Unicode Decimal Code.

'>' gets converted to '>\‘

So when having this in a block.php

<div x-data="{ foo: '>'}">
    <p x-text="foo"></p>
</div>

You get this in the page source

<div x-data="{ foo: '>&#8216;}&#8221;>
    <p x-text="foo"></p>
</div>

Lazy Blocks Version:

2.5.3

WordPress Version:

6.0.1

Any helpful information to reproduce the issue (screenshots, code parts)

Same issue happens when using ACF Pro Blocks.
Vanilla JS like <script>console.log('>')</script> works fine.

@nk-o
Copy link
Collaborator

nk-o commented May 22, 2024

Our plugin provides the correct HTML. However, an escaping function within the Gutenberg render callback is breaking the code. Not sure we can somehow fix it.

@nk-o nk-o closed this as completed May 22, 2024
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

2 participants