public static function SmartyPants::abbrAsis in Typogrify 8
Wrapping abbreviations without adding whitespace.
Parameters
array $hit: A matcher-array from preg_replace_callback.
Return value
string The first element of the array, wrapped in a span.
File
- src/
SmartyPants.php, line 851
Class
- SmartyPants
- SmartyPants - Smart punctuation for web sites.
Namespace
Drupal\typogrifyCode
public static function abbrAsis(array $hit) {
return '<span class="abbr">' . $hit[0] . '</span>';
}