summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-10-30 15:10:17 -0200
committerSilvio <silvio@socioambiental.org>2012-10-30 15:10:17 -0200
commit429aecfc183fbb370115868e7d61a78845f461eb (patch)
tree49f931e036311708949f36412c220156b73a4de7
parent9998443810c61514741865bf2066bc1caab4708a (diff)
downloadtimelinejs-429aecfc183fbb370115868e7d61a78845f461eb.tar.gz
timelinejs-429aecfc183fbb370115868e7d61a78845f461eb.tar.bz2
Comment
-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));
}