protected static function SmartyPants::educateSingleBackticks in Typogrify 8
Educate single backticks.
Example input: `Isn't this fun?' Example output: ‘Isn’t this fun?’
Parameters
string $_: Input text.
Return value
string The string, with `backticks' -style single quotes translated into HTML curly quote entities.
1 call to SmartyPants::educateSingleBackticks()
- SmartyPants::process in src/
SmartyPants.php - SmartyPants.
File
- src/
SmartyPants.php, line 1073
Class
- SmartyPants
- SmartyPants - Smart punctuation for web sites.
Namespace
Drupal\typogrifyCode
protected static function educateSingleBackticks($_) {
$_ = str_replace([
"`",
"'",
], [
'‘',
'’',
], $_);
return $_;
}