function ProcessEscapes in Typogrify 5
Same name and namespace in other branches
- 6 smartypants.php \ProcessEscapes()
- 7 smartypants.php \ProcessEscapes()
5 calls to ProcessEscapes()
File
- ./
smartypants.php, line 618
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 $_;
}