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

[Formatting Bug]: syntax error with double curly braces #790

Closed
ionutdrg45 opened this issue Nov 3, 2023 · 2 comments
Closed

[Formatting Bug]: syntax error with double curly braces #790

ionutdrg45 opened this issue Nov 3, 2023 · 2 comments
Assignees
Labels
bug Something isn't working Stale Stale label

Comments

@ionutdrg45
Copy link

Platform

Windows

Template before formatting

<div class="google-iframe-box">
    {{!! $girl->city->google_iframe !!}}
</div>

Template after formatting

<div class="google-iframe-box">
    {{!! $girl->city->google_iframe !!}}
</div>

Expected Behaviour

It should format the entire file but instead I get this error:
image
Parse Error : syntax error, unexpected '!', expecting ';' on line 1

1 | city->google_iframe !! ?>
| ^

Relevant log output

No response

@ionutdrg45 ionutdrg45 added the bug Something isn't working label Nov 3, 2023
@shufo
Copy link
Owner

shufo commented Nov 6, 2023

It seems syntax error.

To use unescaped expression, you must use single curly braces for expression.

<div class="google-iframe-box">
    {!! $girl->city->google_iframe !!}
</div>

https://laravel.com/docs/10.x/blade#displaying-unescaped-data

@shufo shufo changed the title [Formatting Bug]: [Formatting Bug]: syntax error with double curly braces Nov 6, 2023
Copy link
Contributor

github-actions bot commented Jan 6, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale Stale label label Jan 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale Stale label
Projects
None yet
Development

No branches or pull requests

2 participants