You are here

public function rtf::specialCharacters in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/rtf/rtf_export.inc \rtf::specialCharacters()
  2. 6 class_rtf.php \rtf::specialCharacters()
  3. 7.2 modules/rtf/rtf_export.inc \rtf::specialCharacters()

Convert special characters to ASCII.

1 call to rtf::specialCharacters()
rtf::parseDocument in modules/rtf/rtf_export.inc
Parse the text input to RTF.

File

modules/rtf/rtf_export.inc, line 340

Class

rtf

Code

public function specialCharacters($text) {
  $text_buffer = "";
  for ($i = 0; $i < strlen($text); $i++) {
    $text_buffer .= $this
      ->escapeCharacter($text[$i]);
  }
  return $text_buffer;
}