Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16770 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16770 Rev 17002
Línea 41... Línea 41...
41
        
41
        
42
        $this->add([
42
        $this->add([
43
            'name' => 'name',
43
            'name' => 'name',
44
            'required' => true,
44
            'required' => true,
45
            'filters' => [
-
 
46
                ['name' => \Laminas\Filter\StripTags::class],
45
            'filters' => [
-
 
46
                ['name' => \Laminas\Filter\StringTrim::class],
47
                ['name' => \Laminas\Filter\StringTrim::class],
47
                ['name' => \Laminas\Filter\StripTags::class]
48
            ],
48
            ],
49
            'validators' => [
49
            'validators' => [
50
                [
50
                [
51
                    'name' => \Laminas\Validator\StringLength::class,
51
                    'name' => \Laminas\Validator\StringLength::class,
Línea 62... Línea 62...
62
 
62
 
63
        $this->add([
63
        $this->add([
64
            'name' => 'description',
64
            'name' => 'description',
65
            'required' => true,
65
            'required' => true,
66
            'filters' => [
-
 
67
                ['name' => \Laminas\Filter\StripTags::class],
66
            'filters' => [
-
 
67
                ['name' => \Laminas\Filter\StringTrim::class],
-
 
68
                ['name' => \LeadersLinked\Filter\HtmlPurify::class],
-
 
69
                [
-
 
70
                    'name' => \Laminas\Filter\StripTags::class,
-
 
71
                    'options' => [
-
 
72
                        'allowTags'     => [
-
 
73
                            'h1','h2','h3','h4','h5','h6','p','strong','em','s','span','big','small','tt',
-
 
74
                            'hr','table','thead','tr','th','td','img', 'a','style'
-
 
75
                        ],
-
 
76
                    ]
-
 
77
                    
68
                ['name' => \Laminas\Filter\StringTrim::class],
78
                ],
69
            ],
79
            ],
70
            'validators' => [
80
            'validators' => [
71
                [
81
                [
72
                    'name' => \Laminas\Validator\StringLength::class,
82
                    'name' => \Laminas\Validator\StringLength::class,