aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-11-17 21:01:11 +0100
committerArthurHoaro <arthur@hoa.ro>2016-01-03 17:36:10 +0100
commit1be4afacf98e0124258199ec416dc1c4b4948305 (patch)
tree8c0bdf7997d5a9a048a8fb7503417422caa9f4aa /application
parent79851b489087f8a3027ecd805255cd13ee6fcf63 (diff)
downloadShaarli-1be4afacf98e0124258199ec416dc1c4b4948305.tar.gz
Shaarli-1be4afacf98e0124258199ec416dc1c4b4948305.tar.zst
Shaarli-1be4afacf98e0124258199ec416dc1c4b4948305.zip
PLUGIN Markdown
Parse link description in Markdown (HTML) before rendering. * hard remove of Shaarli's HTML before parsing. * Using Parsedown <https://github.com/erusev/parsedown> PHP lib. * Includes basic markdown CSS. * Style: removed 400px height max limit for shaares. * Unit tests.
Diffstat (limited to 'application')
-rw-r--r--application/Utils.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/application/Utils.php b/application/Utils.php
index f84f70e4..ac8bfbfc 100644
--- a/application/Utils.php
+++ b/application/Utils.php
@@ -44,14 +44,6 @@ function endsWith($haystack, $needle, $case=true)
44} 44}
45 45
46/** 46/**
47 * Same as nl2br(), but escapes < and >
48 */
49function nl2br_escaped($html)
50{
51 return str_replace('>', '&gt;', str_replace('<', '&lt;', nl2br($html)));
52}
53
54/**
55 * htmlspecialchars wrapper 47 * htmlspecialchars wrapper
56 */ 48 */
57function escape($str) 49function escape($str)