Comment

Tech Note: Improvements to LGF Pages

194
Alexzander7/14/2011 6:03:21 pm PDT

re: #182 Charles

$regex = '/(<[a-z1-6]+\s+([a-z\-]+="[^>"]*"\s+)*[a-z\-]+=)([^\"\s>]+)([^>]*>)/is';
while (preg_match($regex, $htmltext)) {
  $htmltext = preg_replace($regex, '$1"$3"$4', $htmltext);
}

The curtain has dropped! Charles is actually a robot!