mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
Add unit test for inline styles in template v2
This commit is contained in:
parent
0bc3635b6c
commit
49f57980dd
3 changed files with 12 additions and 0 deletions
|
|
@ -64,3 +64,7 @@
|
|||
const foo = '<?php echo $this->config->context === 'HTML' ? htmlspecialchars($__Context->foo ?? '', \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape($__Context->foo ?? ''); ?>';
|
||||
const bar = <?php echo $this->config->context === 'JS' ? json_encode($__Context->bar, self::$_json_options2) : htmlspecialchars(json_encode($__Context->bar, self::$_json_options), \ENT_QUOTES, 'UTF-8', false); ?>;
|
||||
<?php $this->config->context = 'HTML'; ?></script>
|
||||
|
||||
<style<?php $this->config->context = 'CSS'; ?>>
|
||||
body { background-color: <?php echo $this->config->context === 'HTML' ? htmlspecialchars('#ffffff', \ENT_QUOTES, 'UTF-8', false) : $this->_v2_escape('#ffffff'); ?>; }
|
||||
<?php $this->config->context = 'HTML'; ?></style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue