From 87f9eff8a659853151706e6d9b10fc0078edb1f0 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 21 Dec 2016 22:37:20 +0000 Subject: [PATCH] add function html2txt --- lib/php/nb.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/php/nb.php b/lib/php/nb.php index 0b9fb414..15a680b4 100644 --- a/lib/php/nb.php +++ b/lib/php/nb.php @@ -897,6 +897,10 @@ class NB { return file_exists('/proc/cpuinfo') && preg_match('/^flags.* hypervisor/m',file_get_contents('/proc/cpuinfo')); } + public static function html2txt($txt) { + return strip_tags($txt); + } + public static function md2html($txt) { static $_txt2md = null; if ($_txt2md === null) { -- 2.47.3