-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df98156
commit f77b9ab
Showing
3 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/cache/views/home/ubuntu/workspace/test/default/tpls/test.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php $maybeHtml = '這是一串文字而且 <a href="#">這是 <b>HTML</b></a>'?><p><?=htmlentities(isset($maybeHtml) ? $maybeHtml : '', \ENT_QUOTES, 'UTF-8')?></p><p><?=isset($maybeHtml) ? $maybeHtml : ''?></p><a<?php $__value = isset($maybeHtml) ? $maybeHtml : false; if (!\Tale\Jade\Compiler\is_null_or_false($__value)) echo ' title='.\Tale\Jade\Compiler\build_value($__value, '"', true); unset($__value);?>></a><a<?php $__value = isset($maybeHtml) ? $maybeHtml : false; if (!\Tale\Jade\Compiler\is_null_or_false($__value)) echo ' title='.\Tale\Jade\Compiler\build_value($__value, '"', false); unset($__value);?>></a><p></p>這會是被轉義的字串: <?=htmlentities(isset($maybeHtml) ? $maybeHtml : '', \ENT_QUOTES, 'UTF-8')?><p></p>這會是 HTML: <?=isset($maybeHtml) ? $maybeHtml : ''?> | ||
<?php $i = 15; ?><p>吻仔魚,吻仔魚。</p><?php $i = 100?><p>更多的吻仔魚。</p><?php $i = ['a','b','c']?><?php $__iterator0 = isset($i) ? $i : [];?><?php foreach ($__iterator0 as $a) {?><p><?=htmlentities(isset($a) ? $a : '', \ENT_QUOTES, 'UTF-8')?></p><?php }?><?php unset($__iterator0);?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<?php $i = 15; ?> | ||
|
||
p 吻仔魚,吻仔魚。 | ||
|
||
$maybeHtml= '這是一串文字而且 <a href="#">這是 <b>HTML</b></a>' | ||
- $i = 100 | ||
|
||
p= $maybeHtml | ||
p!= $maybeHtml | ||
p 更多的吻仔魚。 | ||
|
||
- | ||
$i = [ | ||
'a', | ||
'b', | ||
'c' | ||
] | ||
a(title=$maybeHtml) | ||
a(title!=$maybeHtml) | ||
|
||
|
||
p | ||
| 這會是被轉義的字串: #{$maybeHtml} | ||
p | ||
| 這會是 HTML: !{$maybeHtml} | ||
each $a in $i | ||
p= $a |