protected static function SmartyPants::numberJustSpan in Typogrify 8
Wrapping numbers and adding whitespace by setting margin-left in a span.
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 788
Class
- SmartyPants
- SmartyPants - Smart punctuation for web sites.
Namespace
Drupal\typogrifyCode
protected static function numberJustSpan(array $hit) {
return self::numberReplacer($hit, '');
}