diff options
author | Rafael de Camargo <rafacamargo123@gmail.com> | 2019-05-22 10:41:02 -0300 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2019-05-26 20:54:42 +0200 |
commit | c3012e0142f04243640d7f901e9352b800c7c354 (patch) | |
tree | b5f4b719406c3db83093e84e96876a55adde202e /app/Template/file_viewer/show.php | |
parent | c60d642a1a9976e7d43e8711784533abeb74a07f (diff) |
Fix text file preview
Escapes any html tags on text files
Diffstat (limited to 'app/Template/file_viewer/show.php')
-rw-r--r-- | app/Template/file_viewer/show.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/file_viewer/show.php b/app/Template/file_viewer/show.php index e829a178..0c1c5e2b 100644 --- a/app/Template/file_viewer/show.php +++ b/app/Template/file_viewer/show.php @@ -9,6 +9,6 @@ <?= $this->text->markdown($content) ?> </article> <?php elseif ($type === 'text'): ?> - <pre><?= $content ?></pre> + <pre><?= $this->text->e($content) ?></pre> <?php endif ?> </div> |