public static function Typogrify::filter in Typogrify 8
Same name in this branch
- 8 src/Typogrify.php \Drupal\typogrify\Typogrify::filter()
- 8 src/TwigExtension/Typogrify.php \Drupal\typogrify\TwigExtension\Typogrify::filter()
Typogrify.
The super typography filter. Applies the following filters: widont, smartypants, caps, amp, initialQuotes. Optionally choose to apply quote span tags to Gullemets as well.
Parameters
string $text: The text to work on.
bool $do_guillemets: Optipnal. Whether to apply quote span tags to Gullemets.
Return value
string The modified text.
1 call to Typogrify::filter()
- Typogrify::filter in src/
TwigExtension/ Typogrify.php - Filter text by Typogrify.
File
- src/
Typogrify.php, line 215
Class
Namespace
Drupal\typogrifyCode
public static function filter($text, $do_guillemets = FALSE) {
$text = self::amp($text);
$text = self::widont($text);
$text = SmartyPants::process($text);
$text = self::caps($text);
$text = self::initialQuotes($text, $do_guillemets);
$text = self::dash($text);
return $text;
}