diff options
Diffstat (limited to 'app/helpers.php')
| -rw-r--r-- | app/helpers.php | 12 |
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("<i>", "<i>", $string); + $string = str_replace("</i>", "</i>", $string); + $string = str_replace("<b>", "<b>", $string); + $string = str_replace("</b>", "</b>", $string); + $string = str_replace("<br>", "<br>", $string); + $string = str_replace("%%br%%", "<br>", $string); + + return $string; +} |
