strip tags

This commit is contained in:
Marek Isalski 2018-05-20 15:18:38 +01:00
parent 0dd7067afb
commit 9116cc02e3

View File

@ -11,7 +11,7 @@
print format_date( $completed->getTimestamp(), 'custom', '\s\e\n\t \o\n j/M/Y \a\t ga' );
?></small></h3>
<blockquote>
<?php print text_summary( $mailshot['campaign']['d']['body'], 'full_html' ); ?>
<?php print strip_tags( preg_replace( '/\{\{[^\{]*\}\}/', '&hellip;', text_summary( $mailshot['campaign']['d']['body'], 'full_html' ) ) ); ?>
<?php foreach ( $mailshot['_view_urls']['text/html'] as $k => $v ): ?>
<p><a href="<?php print check_plain($v); ?>" target="_blank">read more&hellip;</a></p>
<?php endforeach; ?>