e107help.org Q&A
0 like 0 dislike

I have textarea field (no WYSIWYG, clean textarea), I need probably some WRITEPARMS (filters) defined not to save inserted text with normal quotes as " in database

          'section_subheader' =>   array ( 'title' => 'Subheader', 'tab' => 1, 'type' => 'textarea', 'data' => 'str',   
              'writeParms' => array('size' => 'block-level'), 'width' => 'auto', 'help' => '', 'readParms' => '',  
                'class' => 'left', 'thclass' => 'left',  ),

And what parser to use to get it back (if this can't be solver)?  

toHTML()?  

Thanks

e107 version e107 v 2.1.6 17.5.2017
asked in Plugins by (1.3k points) 7 52 62
it looks as standard behaviour because in parser code there is replacing of these entites too

toHTML() added <br> tag if there are not visible enter (new lines), so this is not good option

toText() remove html tags, so this is not good option

this was solution

e107::getParser()->toHTML($this->var['section_subheader'],FALSE,'TITLE');

Please log in or register to answer this question.

Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
744 questions
1,153 answers
1,963 comments
1,177 users