diff options
author | nashe <thomas@chauchefoin.fr> | 2018-01-05 20:01:03 +0100 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2018-01-05 20:01:03 +0100 |
commit | 3f863f05f658b63186008516bfe173b23c68ca7e (patch) | |
tree | d727f77a317fce1d3bdda91d820d76836d6a9b75 /custom | |
parent | 1e7eb275f0f7dfdf704196fceaee85f45b683691 (diff) | |
download | planet-3f863f05f658b63186008516bfe173b23c68ca7e.tar planet-3f863f05f658b63186008516bfe173b23c68ca7e.tar.gz planet-3f863f05f658b63186008516bfe173b23c68ca7e.tar.bz2 planet-3f863f05f658b63186008516bfe173b23c68ca7e.tar.xz planet-3f863f05f658b63186008516bfe173b23c68ca7e.zip |
Do not let SimplePie add HTML tags when displaying author
Diffstat (limited to 'custom')
-rwxr-xr-x | custom/views/default/index.tpl.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/custom/views/default/index.tpl.php b/custom/views/default/index.tpl.php index 2a5827f..45303d5 100755 --- a/custom/views/default/index.tpl.php +++ b/custom/views/default/index.tpl.php @@ -41,8 +41,7 @@ header('Content-type: text/html; charset=UTF-8'); <a href="<?php echo $item->get_permalink(); ?>" title="Go to original place"><?php echo $item->get_title(); ?></a> </h2> <p class="article-info"> - - <?php echo ($item->get_author()? $item->get_author()->get_name() : 'Anonymous'); ?>, + <?php echo strip_tags(($item->get_author()? $item->get_author()->get_name() : 'Anonymous')); ?>, <?php $ago = time() - $item->get_date('U'); //echo '<span title="'.Duration::toString($ago).' ago" class="date">'.date('d/m/Y', $item->get_date('U')).'</span>'; |