From f74922db39df383d205fdcd0f25f6690af5b6c2f Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 7 May 2024 08:52:05 +0000 Subject: add bbcode support for the HTML5 del tag --- include/html2bbcode.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/html2bbcode.php') diff --git a/include/html2bbcode.php b/include/html2bbcode.php index e0a9a630a..db8f3a8e0 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -186,7 +186,11 @@ function html2bbcode($message) node2bbcode($doc, 'b', array(), '[b]', '[/b]'); node2bbcode($doc, 'i', array(), '[i]', '[/i]'); node2bbcode($doc, 'u', array(), '[u]', '[/u]'); + // The s tag is deprecated in HTML5 node2bbcode($doc, 's', array(), '[s]', '[/s]'); + node2bbcode($doc, 'del', [], '[s]', '[/s]'); + + node2bbcode($doc, 'mark', array(), '[mark]', '[/mark]'); node2bbcode($doc, 'span', array(), "", ""); -- cgit v1.2.3