Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Filter
RemoveTags.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Filter
;
7
11
class
RemoveTags
implements
\Zend_Filter_Interface
12
{
19
protected
function
_convertEntities
($matches)
20
{
21
return
htmlentities($matches[0]);
22
}
23
30
public
function
filter
(
$value
)
31
{
32
$value
= preg_replace_callback(
33
"# <(?![/a-z]) | (?<=\s)>(?![a-z]) #xi"
,
34
[$this,
'_convertEntities'
],
35
$value
36
);
37
$value
= htmlspecialchars_decode(
$value
);
38
39
return
strip_tags(
$value
);
40
}
41
}
Magento\Framework\Filter\RemoveTags
Definition:
RemoveTags.php:11
Magento\Framework\Filter
Definition:
AbstractFactory.php:6
$value
$value
Definition:
gender.phtml:16
Zend_Filter_Interface
Definition:
Interface.php:30
Magento\Framework\Filter\RemoveTags\_convertEntities
_convertEntities($matches)
Definition:
RemoveTags.php:19
Magento\Framework\Filter\RemoveTags\filter
filter($value)
Definition:
RemoveTags.php:30