Back to PhocacartUtils class

Method cleanExternalHtml

public static
cleanExternalHtml
(mixed $html)

Method cleanExternalHtml - Source code

public static function cleanExternalHtml($html)
{
    $allowedTags = PhocacartUtilsSettings::getHTMLTagsExternalSource();
    $allowedTagsString = '<' . implode('><', $allowedTags) . '>';
    $html = strip_tags($html, $allowedTagsString);
    return $html;
}