We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
?>
from php documentation: https://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
The closing tag for the block will include the immediately trailing newline if one is present
The first example shows the issue. also this code https://3v4l.org/rc2sD
first line <?php echo "second line"; ?> third line
and this code https://3v4l.org/A9N8J
first line <?php echo "second line"; ?>third line
generate the same output:
first line second linethird line
but this code https://3v4l.org/ddCTm
generate proper output:
first line second line third line
Because all stempler compilers (directives, dynamic content) generate code as is and don't know about this:
we have this issue: this template
line 1 hello {{ $name }} line 3
compiles to this php
?>line 1 hello <?php echo htmlspecialchars((string) ($name), ENT_QUOTES | ENT_SUBSTITUTE, 'utf-8'); ?> line 3<?php
but render result for the name=Test will be:
line 1 hello Testline 3
expected behavior
line 1 hello Test line 3
P.S. I don't know where is better to add trailing \n to all closing php tags ?>
\n
The text was updated successfully, but these errors were encountered:
msmakouz
No branches or pull requests
Description
from php documentation:
https://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
The first example shows the issue.
also this code https://3v4l.org/rc2sD
and this code https://3v4l.org/A9N8J
generate the same output:
but this code https://3v4l.org/ddCTm
generate proper output:
Because all stempler compilers (directives, dynamic content) generate code as is and don't know about this:
How To Reproduce
we have this issue:
this template
compiles to this php
but render result for the name=Test will be:
expected behavior
Additional Info
P.S. I don't know where is better to add trailing
\n
to all closing php tags?>
The text was updated successfully, but these errors were encountered: