You are here

function escape_string in FillPDF 5

1 call to escape_string()
print_fields in ./xfdf.inc

File

./xfdf.inc, line 26

Code

function escape_string($str) {
  if ($str == NULL) {
    return $str;
  }
  $str = str_replace(array(
    '\\',
    '\'',
  ), array(
    '\\\\',
    '\\\'',
  ), $str);
  return $str;
}