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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Prevent removing of double quote marks in DataObject


Reply

2 Posts   979 Views

Avatar
andy_steel

28 July 2009 at 1:51am Community Member, 31 Posts

Hi,

I have a form where I read in form data and populate a DataObject. When that data is displayed on a form the double quote marks are stripped out. How can I make sure all data is returned and escaped correctly?

Thanks,
Andrew

Avatar
andy_steel

28 July 2009 at 9:33pm Community Member, 31 Posts

I eventually found out.

In the template use:
$dataobject.field.att

Its also possible to use
$dataobject.field.xml