Fix text file preview
Escapes any html tags on text files
This commit is contained in:
committed by
fguillot
parent
c60d642a1a
commit
c3012e0142
@@ -9,6 +9,6 @@
|
|||||||
<?= $this->text->markdown($content) ?>
|
<?= $this->text->markdown($content) ?>
|
||||||
</article>
|
</article>
|
||||||
<?php elseif ($type === 'text'): ?>
|
<?php elseif ($type === 'text'): ?>
|
||||||
<pre><?= $content ?></pre>
|
<pre><?= $this->text->e($content) ?></pre>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user