Forum Moderators: coopster
A line of text, which is of any length. Ohw yes it is!<br /><br />
<h2>And a header</h2>
<img src="image.jpg>With an image and a <a href="/">link</a>. With some more text.
A line of text, which is of any length. Ohw yes it is! With an image and a <a href="/">link</a>. With some more text.
$string = $this->item->fulltext;
$search = array('/\<(.+)>(.*)>/si'); //Strip out HTML tags
$string = preg_replace($search, '', $string);
$string = $this->item->fulltext;
$text = preg_replace('|\<h2.*\>(.*\n*)\</h2\>|isU', '', $string);
$text = strip_tags($text, '<b><i><em><strong><a>');
$string = $this->item->fulltext;
$text = preg_replace('|\<h2.*\>(.*\n*)\</h2\>|isU', '', $string);
$text = preg_replace('|\<h3.*\>(.*\n*)\</h3\>|isU', '', $text);
$text = strip_tags($text, '<b><i><em><strong><a>');