summaryrefslogtreecommitdiff
path: root/timelinejs.module
diff options
context:
space:
mode:
Diffstat (limited to 'timelinejs.module')
-rw-r--r--timelinejs.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/timelinejs.module b/timelinejs.module
index 4971acb..9e284e0 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -173,3 +173,7 @@ function timelinejs($nid, $width = '960px', $height = '500px') {
function timelinejs_print($nid) {
return theme('timelinejs_print', timelinejs_fetch_items($nid, 'print'));
}
+
+function timelinejs_strip($string) {
+ return str_replace(array("\r\n", "\n", "\r"), '<br>', str_replace('"', "'", $string));
+}