protected static function SmartyPants::numberNarrownbsp in Typogrify 8
Wrapping numbers and adding whitespace '&narrownbsp;'.
Parameters
array $hit: A matcher-array from preg_replace_callback.
Return value
string The first non-empty numeric string in $hit. Depending on where in the array it is, add whitespace and wrap in a <span>.
File
- src/
SmartyPants.php, line 745
Class
- SmartyPants
- SmartyPants - Smart punctuation for web sites.
Namespace
Drupal\typogrifyCode
protected static function numberNarrownbsp(array $hit) {
return self::numberReplacer($hit, ' ');
}