function StupefyEntities in Typogrify 5        
                          
                  
                        Same name and namespace in other branches
- 6 smartypants.php \StupefyEntities()
 - 7 smartypants.php \StupefyEntities()
 
 
1 call to StupefyEntities()
  - SmartyPants in ./smartypants.php
 
  
 
File
 
   - ./smartypants.php, line 592
 
  
Code
function StupefyEntities($_) {
  
  
  
  
  
  
  
  
  
  $_ = str_replace(array(
    '–',
    '—',
  ), array(
    '-',
    '--',
  ), $_);
  
  $_ = str_replace(array(
    '‘',
    '’',
  ), "'", $_);
  
  $_ = str_replace(array(
    '“',
    '”',
  ), '"', $_);
  $_ = str_replace('…', '...', $_);
  
  return $_;
}