Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
i have small problem with my site
i've created another page with additional box for custom stuff :
$fields->addFieldToTab('Root.Content.Custom', new TextAreaField('Stuff'));
and the problems are that
- silverstripe adds a lot of CDATA
- automaticly remove "</script" from content
- replacing eg \" with \"" etc
how to prevent this from happening ?
If you would like to access the raw value of a field from a template you can use the RAW getter: $Stuff.RAW should do it if I understand your problem correctly.
litle bit better but most important problems still appear like :
"</script>" is automaticly removed from content and is stored like that in database