[Formatting Bug]: syntax error with double curly braces
ionutdrg45 opened this issue · comments
Ionuț Drăgan commented
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:
Parse Error : syntax error, unexpected '!', expecting ';' on line 1
1 | city->google_iframe !! ?>
| ^
Relevant log output
No response
Shuhei Hayashibara commented
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
github-actions commented
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