function ProcessEscapes in Typogrify 6
Same name and namespace in other branches
- 5 smartypants.php \ProcessEscapes()
- 7 smartypants.php \ProcessEscapes()
5 calls to ProcessEscapes()
- convert_characters in ./
unicode-conversion.php - Perform character conversion.
- SmartDashes in ./
smartypants.php - SmartEllipses in ./
smartypants.php - SmartQuotes in ./
smartypants.php - SmartyPants in ./
smartypants.php
File
- ./
smartypants.php, line 586 - smartypants.php SmartyPants - Smart punctuation for web sites
Code
function ProcessEscapes($_) {
#
# Parameter: String.
# Returns: The string, with after processing the following backslash
# escape sequences. This is useful if you want to force a "dumb"
# quote or other character to appear.
#
# Escape Value
# ------ -----
# \\ \
# \" "
# \' '
# \. .
# \- -
# \` `
#
$_ = str_replace(array(
'\\\\',
'\\"',
"\\'",
'\\.',
'\\-',
'\\`',
), array(
'\',
'"',
''',
'.',
'-',
'`',
), $_);
return $_;
}