/framework/vendor/smarty2/plugins/modifier.jstring.php

http://zoop.googlecode.com/ · PHP · 7 lines · 7 code · 0 blank · 0 comment · 0 complexity · 74004b7e6cab1b2a3a45e4f02a4f4b00 MD5 · raw file

  1. <?php
  2. function smarty_modifier_jstring($string)
  3. {
  4. $string = str_replace("\r", '', $string);
  5. $string = str_replace("\n", '\n', $string);
  6. return $string;
  7. }