-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Great than character in theme template causing issues #160
Comments
Interesting. Does it happen if you set The only thing I can think of is it being some sort of bug with how ACF parses InnerContent/jsx inside of the template. |
Hi @Log1x, thanks for your quick response. I tried it without jsx and the same bug occurred. I also setup a new install, adding a simple ACF block to the twentytwentythree theme and ran into the same bug – so it must be on ACF's end. I'll submit an issue on the ACF repo, thanks for your help! |
I ran into the exact same problem a few days ago. I tried using ">" (larger than) in an inline javascript function. (Using alpinejs) Thanks you guys. I thought I was the problem.. 😄 |
AdvancedCustomFields/acf#822 here's Alex's issue 💪 . I'm curious about their response. I think I've accidentally ran into this before as well. |
It's a coincidence that we posted almost at the same time haha... A workaround is to use the html entity: |
I've just heard back from ACF on this. This seems to be an issue with wptexturize, and has popped up in a few issues: WordPress/gutenberg/issues/15636 It sounds like the ACF team are looking into a solution on there end (🤞), but it may only be resolvable in WP core. |
Hi there,
A bit of an unusual one; i'm finding that using the greater than characters in quotes is removing the closing double quote (") and replacing it with a double prime character (″) – causing issues in the HTML.
.blade.php
<div class="[&>*]:mb-0"></div>
or<div class=">"></div>
becomes
.html
<div class="[&>*]:mb-0″></div>
or<div class=">″></div>
The below just causes an error.
.blade.php
<div class='[&>*]:mb-0'></div>
or<div class='>'></div>
This isn't the case for other template files outside of the ACF Composer template files. It only applies to
views>blocks>**.blade.php
Thanks for your hard work on acf-composer!
The text was updated successfully, but these errors were encountered: