summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--timelinejs.module3
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));
}