Thread
:
Display first H2 tag as title instead of page title
View Single Post
02-27-2005, 06:04 PM
#
3
mdavila
Green Mole
Join Date: Feb 2005
Posts: 11
Such as this?
//extracts title
if (preg_match('/< *h2 *>(.*?)< *\/ *h2 *>/is',$text,$regs)) {
$title = trim($regs[1]);
}
else {
$title = "";
}
mdavila
View Public Profile
Find More Posts by mdavila