public static function amp($value) { $value = preg_replace('/&(?!amp;)/im', '&', $value); return $value; }