From 429aecfc183fbb370115868e7d61a78845f461eb Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 30 Oct 2012 15:10:17 -0200 Subject: Comment --- timelinejs.module | 3 +++ 1 file changed, 3 insertions(+) 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"), '
', str_replace('"', "'", $string)); } -- cgit v1.2.3