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

View File

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