function EducateSingleBackticks in Typogrify 6
Same name and namespace in other branches
- 5 smartypants.php \EducateSingleBackticks()
- 7 smartypants.php \EducateSingleBackticks()
1 call to EducateSingleBackticks()
File
- ./
smartypants.php, line 476 - smartypants.php SmartyPants - Smart punctuation for web sites
Code
function EducateSingleBackticks($_) {
#
# Parameter: String.
# Returns: The string, with `backticks' -style single quotes
# translated into HTML curly quote entities.
#
# Example input: `Isn't this fun?'
# Example output: ‘Isn’t this fun?’
#
$_ = str_replace(array(
"`",
"'",
), array(
'‘',
'’',
), $_);
return $_;
}