X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUtils.php;h=10d606987c826990e94fad0489f36aad66f6a969;hb=3a38c95d4232aed4a40f70eb11d26cafc9188bac;hp=551db3e7cf4b74b1a347d7a84002d1472384fa6b;hpb=aa7f7b3ea66e0155960765d1213c632dafa74918;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Utils.php b/application/Utils.php index 551db3e7..10d60698 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -61,14 +61,6 @@ function endsWith($haystack, $needle, $case=true) return (strcasecmp(substr($haystack, strlen($haystack) - strlen($needle)), $needle) === 0); } -/** - * Same as nl2br(), but escapes < and > - */ -function nl2br_escaped($html) -{ - return str_replace('>', '>', str_replace('<', '<', nl2br($html))); -} - /** * htmlspecialchars wrapper */