diff options
author | Silvio <silvio@socioambiental.org> | 2012-10-30 15:10:17 -0200 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2012-10-30 15:10:17 -0200 |
commit | 429aecfc183fbb370115868e7d61a78845f461eb (patch) | |
tree | 49f931e036311708949f36412c220156b73a4de7 | |
parent | 9998443810c61514741865bf2066bc1caab4708a (diff) | |
download | timelinejs-429aecfc183fbb370115868e7d61a78845f461eb.tar.gz timelinejs-429aecfc183fbb370115868e7d61a78845f461eb.tar.bz2 |
Comment
-rw-r--r-- | timelinejs.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/timelinejs.module b/timelinejs.module index 9e284e0..2923e5d 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -174,6 +174,9 @@ function timelinejs_print($nid) { return theme('timelinejs_print', timelinejs_fetch_items($nid, 'print')); } +/** + * Strip text so it can be used at the json templates. + */ function timelinejs_strip($string) { return str_replace(array("\r\n", "\n", "\r"), '<br>', str_replace('"', "'", $string)); } |