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