how to set textarea field not to save " in database

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)?  



e107 version e107 v 2.1.6 17.5.2017

Jimako commented May 19, 2017

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


Please log in or register to answer this question.

Know someone who can answer? Share a link to this


e107 Q&A is a Question and Answer platform where e107 users can ask questions themselves and answer each others questions. By doing so users can earn badges and points and become e107 experts.

This community platform is a valuable tool for sharing and gaining knowledge on e107. Go ahead and find out yourself!

Connect with us