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]: Parse Error on adding html escape tags #786

Closed
omishah opened this issue Oct 27, 2023 · 1 comment
Closed

[Formatting Bug]: Parse Error on adding html escape tags #786

omishah opened this issue Oct 27, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@omishah
Copy link

omishah commented Oct 27, 2023

Platform

MacOS

Template before formatting

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Demo</title>
</head>
<body>
    {{!! $html_code !!}}
</body>
</html>

Template after formatting

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Demo</title>
</head>
<body>
    {{!! $html_code !!}}
</body>
</html>

Expected Behaviour

No error should be displayed!

Relevant log output

Parse Error : syntax error, unexpected '!', expecting ';' on line 1 > 1 | <?php echo !! $html_code !! ?> | ^
@omishah omishah added the bug Something isn't working label Oct 27, 2023
@omishah
Copy link
Author

omishah commented Oct 27, 2023

as per latest docs, we need to use single curly brackets instead of double!

{!! $html_code !!}

@omishah omishah closed this as completed Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants