aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init/sanitize.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions/init/sanitize.php')
-rw-r--r--functions/init/sanitize.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/init/sanitize.php b/functions/init/sanitize.php
index 39b8246..e3e6525 100644
--- a/functions/init/sanitize.php
+++ b/functions/init/sanitize.php
@@ -53,11 +53,13 @@ function chopToWordCount($string, $count) {
function sanitizeForWeb($string) {
$string = preg_replace('/<br\s*\/?>/', "\n", $string);
+ $string = str_replace('&#36;', '$', $string);
$string = str_replace('&', '&amp;', $string);
$string = str_replace('<', '&lt;', $string);
$string = str_replace('>', '&gt;', $string);
$string = str_replace('\'', '&#39;', $string);
$string = str_replace('"', '&#34;', $string);
+ $string = str_replace('$', '&#36;', $string);
$string = str_replace("\n", '<br />', $string);
$string = str_replace("\t", ' &nbsp; &nbsp; ', $string);

© 2014-2024 Faster IT GmbH | imprint | privacy policy