1
我怎么可以从以下线路地带H1标签,其内容
strip_tags(substr($article->content(),0,255)
从这个完整的代码删除
<h1>and its contents</h1>
<?php $last_articles = $this->children(array('limit'=>5, 'order'=>'page.created_on DESC')); ?>
<?php foreach ($last_articles as $article): ?>
<div class="entry">
<h3><?php echo $article->link($article->title); ?></h3>
<?php echo strip_tags(substr($article->content(),0,255).'...', '<p><a>'); ?>
</div>
<?php endforeach; ?>
Pefect谢谢。 – Andy 2010-05-04 08:09:08
@安迪:不客气。 – Sarfraz 2010-05-04 08:10:07