X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUtils.php;fp=application%2FUtils.php;h=10d606987c826990e94fad0489f36aad66f6a969;hb=893338f0d407a0989454d5e3c0e43c97f7eface5;hp=551db3e7cf4b74b1a347d7a84002d1472384fa6b;hpb=423e2a8b13dc0069c83f3e540f576aa1b89fe5d5;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 */