From 1be4afacf98e0124258199ec416dc1c4b4948305 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 17 Nov 2015 21:01:11 +0100 Subject: PLUGIN Markdown Parse link description in Markdown (HTML) before rendering. * hard remove of Shaarli's HTML before parsing. * Using Parsedown PHP lib. * Includes basic markdown CSS. * Style: removed 400px height max limit for shaares. * Unit tests. --- application/Utils.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'application/Utils.php') diff --git a/application/Utils.php b/application/Utils.php index f84f70e4..ac8bfbfc 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -43,14 +43,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 */ -- cgit v1.2.3