Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
xss_safe.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 ?>
9 
10 <?= /* @escapeNotVerified */ $block->getSomeData() ?>
11 <?= /* @noEscape */ $block->getSomeData() ?>
12 <input name="form_key" type="hidden" value="<?= $block->escapeUrl($var) ?>" />
13 <input name="form_key" type="hidden" value="<?= $block->escapeHtmlAttr('value') ?>" />
14 <input name="form_key" type="hidden" value="<?= $block->escapeJs('value') ?>" />
15 <?= $block->escapeCss('value') ?>
16 echo $var;
17 <?= $block->getHtmlId("some value") ?>
18 <?= $block->getIdHtml("some value") ?>
19 <?= $block->getIdHtml("some value") ?>
20 <?= "\$var1" ?>
21 <?= '$var' ?>
22 <?= "value" ?>
23 <?= 'value' ?>
24 <?= (int)$var ?>
25 <?= (bool)$var ?>
26 <?= count($var) ?>
27 <?= $object->methodHtml() ?>
28 <?php pecho($var);?>
29 <?= $object->methodHtml() .
30  (bool)$var .
31  $block->escapeUrl("some value");
32 ?>
33 <?= /* @noEscape */ '\'' . $code . '\',\'' . $block->escapeHtml($data['parentSymbol']) . '\'' ?>
34 <?= $block->getExtendedElement($switchAttributeCode)->toHtml() ?>
35 <?= $block->escapeHtml($_filter->getFilter()->getClearLinkText()) ?>
36 <?php
40 ?>
41 
42 <?php
43 /* This part is commented to remove all <col> tags from the code. */
44 /* foreach ($block->getColumns() as $_column): ?>
45  <col <?= $_column->getProperty() ?> />
46 <?php endforeach; */ ?>
47 
48 <?= $block->escapeHtmlAttr($block->getParamValue('title_' . $store['value'])) ?>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
$block
Definition: block.php:8
$code
Definition: info.phtml:12
$switchAttributeCode
Definition: extend.phtml:15