You are here

function EducateSingleBackticks in Typogrify 7

Same name and namespace in other branches
  1. 5 smartypants.php \EducateSingleBackticks()
  2. 6 smartypants.php \EducateSingleBackticks()

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 EducateSingleBackticks()
SmartyPants in ./smartypants.php
SmartyPants.

File

./smartypants.php, line 956
SmartyPants - Smart punctuation for web sites

Code

function EducateSingleBackticks($_) {
  $_ = str_replace(array(
    "`",
    "'",
  ), array(
    '‘',
    '’',
  ), $_);
  return $_;
}