Redaxscript\Filter\Html::_stripValues PHP Метод

_stripValues() защищенный Метод

strip the values
С версии: 2.6.0
protected _stripValues ( object $node = null ) : object
$node object target node
Результат object
    protected function _stripValues($node = null)
    {
        foreach ($node->childNodes as $childNode) {
            if ($childNode->nodeType === XML_ELEMENT_NODE) {
                /* strip children values */
                if ($childNode->hasChildNodes()) {
                    $this->_stripValues($childNode);
                }
            } else {
                $childNode->nodeValue = str_ireplace($this->_forbiddenValues, null, $childNode->nodeValue);
            }
        }
        return $node;
    }