Table of contents Home page
$s = '<h1><i>Chapter</i> <span num="roman">IV</span></h1>'; echo strip_tags($s), "\n"; // All tags are removed
$s = '<h1><i>Chapter<'/i> <span num="roman">IV</span></h1>'; echo strip_tags($s, '<i><span>'), "\n"; // The span and i tags are retained