Add html escaping

This commit is contained in:
Dennis Eichhorn 2017-07-24 20:48:22 +02:00
parent 5574a7ccd5
commit 6b23b83fb5
2 changed files with 14 additions and 14 deletions

View File

@ -29,9 +29,9 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<div class="tabular">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getText('Start') ?></label>
<li><label for="c-tab-2"><?= $this->getText('Insert') ?></label>
<li><label for="c-tab-3"><?= $this->getText('Layout') ?></label>
<li><label for="c-tab-1"><?= $this->getHtml('Start'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('Insert'); ?></label>
<li><label for="c-tab-3"><?= $this->getHtml('Layout'); ?></label>
</ul>
<div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-1" checked>
@ -88,8 +88,8 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<div class="tabular">
<ul class="tab-links">
<li><label for="c-tab2-1"><?= $this->getText('Text') ?></label>
<li><label for="c-tab2-2"><?= $this->getText('Preview') ?></label>
<li><label for="c-tab2-1"><?= $this->getHtml('Text'); ?></label>
<li><label for="c-tab2-2"><?= $this->getHtml('Preview'); ?></label>
</ul>
<div class="tab-content">
<input type="radio" id="c-tab2-1" name="tabular-2" checked>
@ -107,12 +107,12 @@ echo $this->getData('nav')->render(); ?>
<div class="inner">
<form>
<table class="layout">
<tr><td colspan="2"><label><?= $this->getText('Permission') ?></label>
<tr><td colspan="2"><label><?= $this->getHtml('Permission'); ?></label>
<tr><td><select>
<option>
</select>
<tr><td colspan="2"><label><?= $this->getText('GroupUser') ?></label>
<tr><td><input id="iPermission" name="group" type="text" placeholder="&#xf084;"><td><button><?= $this->getText('Add') ?></button>
<tr><td colspan="2"><label><?= $this->getHtml('GroupUser'); ?></label>
<tr><td><input id="iPermission" name="group" type="text" placeholder="&#xf084;"><td><button><?= $this->getHtml('Add'); ?></button>
</table>
</form>
</div>

View File

@ -24,20 +24,20 @@ $footerView->setPage(1);
echo $this->getData('nav')->render(); ?>
<div class="box">
<table class="table red">
<caption><?= $this->getText('Documents'); ?></caption>
<caption><?= $this->getHtml('Documents') ?></caption>
<thead>
<tr>
<td class="wf-100"><?= $this->getText('Name'); ?>
<td><?= $this->getText('Creator'); ?>
<td><?= $this->getText('Created'); ?>
<td class="wf-100"><?= $this->getHtml('Name') ?>
<td><?= $this->getHtml('Creator') ?>
<td><?= $this->getHtml('Created') ?>
<tfoot>
<tr>
<td colspan="3"><?= $footerView->render(); ?>
<td colspan="3"><?= htmlspecialchars($footerView->render(), ENT_COMPAT, 'utf-8'); ?>
<tbody>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>