src/Form.php
private function filterElement(ElementInterface $element)
    {
        $value = $element->getValue();
        foreach ($this->filters as $scope => $filter) {
            $elementIds = array_map('trim', explode(',', $scope));
            if ($scope === '*' || in_array($element->getID(), $elementIds)) {
                $value = $filter->filter($value);
            }
        }
        $element->setValue($value);
    }
private function filterElement(ElementInterface $element)
    {
        $value = $element->getValue();
        foreach ($this->filters as $scope => $filter) {
            $elementIds = array_map('trim', explode(',', $scope));
            if ($scope === '*' || in_array($element->getID(), $elementIds)) {
                $value = $filter->filter($value);
            }
        }
        $element->setValue($value);
    }
Applies all defined filters to an element's value

@param ElementInterface $element