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

Errors when using ">" in acf block view #161

Closed
SergiArias opened this issue Apr 29, 2023 · 2 comments
Closed

Errors when using ">" in acf block view #161

SergiArias opened this issue Apr 29, 2023 · 2 comments

Comments

@SergiArias
Copy link

SergiArias commented Apr 29, 2023

This was difficult to track, but I don't know why, when using ">" the acf block blade view fails. This doesn't happen in a regular blade view.

As an example (and using alpinejs), this fails (error: invalid character or token):

  <div x-data="{init() {[1,2].forEach((element)=>{console.log(element)})}}"></div>

Substituting the ">" for its > html entity it works:

  <div x-data="{init() {[1,2].forEach((element)=&gt;{console.log(element)})}}"></div>
@Log1x
Copy link
Owner

Log1x commented Apr 29, 2023

Neat workaround.

#160 was opened the other day if you missed it.

@SergiArias
Copy link
Author

Yeah! It was a long time ago bug that I thought was a Sage problem and I just detected where it came from recently, what a coincidence that Alex also ran into the same thing!
I close it as it is a duplicate.

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