WordPress at a glance
function is not described

Pelago\Emogrifier\HtmlProcessor

HtmlPruner::removeClassAttributeFromElements() private WC 1.0

Removes the class attribute from each element in $elements.

{} It's a method of the class: HtmlPruner{}

No Hooks.

Return

null.

Usage

// private - for code of main (parent) class only
$result = $this->removeClassAttributeFromElements( \DOMNodeList $elements );
\DOMNodeList $elements (required)
-

Code of HtmlPruner::removeClassAttributeFromElements() WC 5.0.0

<?php
private function removeClassAttributeFromElements(\DOMNodeList $elements)
{
    /** @var \DOMNode $element */
    foreach ($elements as $element) {
        $element->removeAttribute('class');
    }
}