src/Teamsisu/MetaModelsFrontendInput/Handler/Save/SaveHandler.php
public function parseWidget($widget)
    {

        if(is_a($widget, 'Contao\FormTextArea') || is_a($widget, 'Contao\FormTextField')){

            if($this->field->getEval('allowHtml')){
                $value = strip_tags(\String::decodeEntities($widget->value), \Config::get('allowedTags'));
            }else{
                $value = strip_tags(\String::decodeEntities($widget->value));
            }

            if($this->field->getEval('decodeEntities')){
                return $value;
            }else{
                return specialchars($value);
            }
        }

        return $widget->value;
    }
public function parseWidget($widget)
    {

        if(is_a($widget, 'Contao\FormTextArea') || is_a($widget, 'Contao\FormTextField')){

            if($this->field->getEval('allowHtml')){
                $value = strip_tags(\String::decodeEntities($widget->value), \Config::get('allowedTags'));
            }else{
                $value = strip_tags(\String::decodeEntities($widget->value));
            }

            if($this->field->getEval('decodeEntities')){
                return $value;
            }else{
                return specialchars($value);
            }
        }

        return $widget->value;
    }
public function parseWidget ( $ widget ) { if ( is_a ( $ widget , 'Contao\FormTextArea' ) || is_a ( $ widget , 'Contao\FormTextField' ) ) { if ( $ this -> field -> getEval ( 'allowHtml' ) ) { $ value = strip_tags ( \ String :: decodeEntities ( $ widget -> value ) , \ Config :: get ( 'allowedTags' ) ) ; } else { $ value = strip_tags ( \ String :: decodeEntities ( $ widget -> value ) ) ; } if ( $ this -> field -> getEval ( 'decodeEntities' ) ) { return $ value ; } else { return specialchars ( $ value ) ; } } return $ widget -> value ; }
This function is for the manipulation of the attribute value
Must return the value in the format what is needed for MetaModels

@param $widget
@return mixed
This function is for the manipulation of the attribute value Must return the value in the format what is needed for MetaModels