Derek, Here is the fix:
Change:
// attempt 3
if ($text == '') {
preg_match("|SHORT TERM\.\.\.([^&{2}]+)&{2}|is", $html, $betweenspan);
$text = trim($betweenspan[1]);
$text = ucfirst(htmlspecialchars(strip_tags(strtolower($text))));
$text = truncate_flyer($text,750,'');
}
// attempt 4
if ($text == '') {
preg_match("|SHORT TERM\.\.\.([^&&]+)&{2}|is", $html, $betweenspan);
$text = trim($betweenspan[1]);
$text = ucfirst(htmlspecialchars(strip_tags(strtolower($text))));
$text = truncate_flyer($text,750,'');
}
To:
// attempt 3
if ($text == '') {
preg_match("|SHORT TERM[ a-zA-Z/]*\.\.\.([^&{2}]+)&{2}|is", $html, $betweenspan);
$text = trim($betweenspan[1]);
$text = ucfirst(htmlspecialchars(strip_tags(strtolower($text))));
$text = truncate_flyer($text,750,'');
}
// attempt 4
if ($text == '') {
preg_match("|SHORT TERM[ a-zA-Z/]*\.\.\.([^&&]+)&{2}|is", $html, $betweenspan);
$text = trim($betweenspan[1]);
$text = ucfirst(htmlspecialchars(strip_tags(strtolower($text))));
$text = truncate_flyer($text,750,'');
}
I will make a new release.