From 11e06408d1b307c0e4ee304a6f18ce92d7e119cf Mon Sep 17 00:00:00 2001 From: Matthieu Marcillaud <marcimat@rezo.net> Date: Tue, 11 Jul 2023 18:22:30 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Remplacer=20d=E2=80=99=C3=A9ventuels=20?= =?UTF-8?q?br=20auto-fermants=20en=20=C3=A9criture=20html5=20lors=20de=20l?= =?UTF-8?q?=E2=80=99export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/salvatore.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/salvatore.php b/inc/salvatore.php index f6d819e..cd28b0e 100644 --- a/inc/salvatore.php +++ b/inc/salvatore.php @@ -581,6 +581,15 @@ function salvatore_nettoyer_chaine_langue($chaine, $lang) { } } + /** + * HTML5 + */ + $chaine = str_replace( + ['<br/>', '<br />'], + ['<br>', '<br>'], + $chaine + ); + /** * On applique la typographie de la langue */ -- GitLab