0vote

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

Jimako commented May 19

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.

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