summaryrefslogtreecommitdiff
path: root/app/helpers.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers.php')
-rw-r--r--app/helpers.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php
new file mode 100644
index 0000000..bac4f0e
--- /dev/null
+++ b/app/helpers.php
@@ -0,0 +1,12 @@
+<?php
+
+function replaceSpecialChars($string) {
+ $string = str_replace("&lt;i&gt;", "<i>", $string);
+ $string = str_replace("&lt;/i&gt;", "</i>", $string);
+ $string = str_replace("&lt;b&gt;", "<b>", $string);
+ $string = str_replace("&lt;/b&gt;", "</b>", $string);
+ $string = str_replace("&lt;br&gt;", "<br>", $string);
+ $string = str_replace("%%br%%", "<br>", $string);
+
+ return $string;
+}