/** * typogrify * * The super typography filter. * Applies the following filters: widont, smartypants, caps, amp, initial_quotes * Optionally choose to apply quote span tags to Gullemets as well. */ public static function filter($text, $do_guillemets=FALSE) { $text = Typogrify::amp($text); $text = Typogrify::widont($text); $text = SmartyPants($text); $text = Typogrify::caps($text); $text = Typogrify::initial_quotes($text, $do_guillemets); $text = Typogrify::dash($text); return $text; }