From b162501f0c9c9b00003cd7a16a504719eec01a8c Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Tue, 9 Mar 2021 20:19:00 +0100 Subject: [PATCH] =?UTF-8?q?Permet=20de=20d=C3=A9sactiver=20la=20d=C3=A9cor?= =?UTF-8?q?ation=20du=20texte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index e243617..20086e0 100644 --- a/index.php +++ b/index.php @@ -14,6 +14,8 @@ define("DASHES" $style = @$_REQUEST['style']; +# to false only if textDecoration=0 in the URL +$textDecoration = "0" != @$_REQUEST['textDecoration']; /* The url argument is always absolute compared to the document root * The leading slash is removed. so url=/foo/bar and url=foo/bar ar the same. @@ -107,6 +109,8 @@ function markupPreg($instruction, $markup, &$text) { * @param $line the line to process */ function addTextAttributes(&$line) { + global $textDecoration; + if (!$textDecoration) return; markupPreg("__", "u", $line); markupPreg("\*\*", "strong", $line); markupPreg("//", "em", $line);