From 02b7d3f8faa007c3ece8e5450fe19ab301eaa664 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Sat, 23 May 2020 23:22:21 +0300 Subject: [PATCH] add transform xhtml --- app/functions/xhtmltransform.php | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 app/functions/xhtmltransform.php diff --git a/app/functions/xhtmltransform.php b/app/functions/xhtmltransform.php new file mode 100644 index 0000000..9cdf774 --- /dev/null +++ b/app/functions/xhtmltransform.php @@ -0,0 +1,57 @@ +', $pos); + + if ($end) + return $end; + else + return false; + +} + + + + +//удаляем xtml +function convert2html($xfile){ + + if (!file_exists($xfile)){ + return ''; + } + + $xhtml = file_get_contents($xfile); + + $result = str_replace('', '', $xhtml); + $result = str_replace('', '', $xhtml); + + if ($pos = strpos('