22401 Posts in 6852 Topics by 2748 members
|Go to End|
22 February 2011 at 5:24am
Any advice would be good thanks.
22 February 2011 at 10:13pm
Does it store it formatted like that in the database? (check your database) or is it converting the line breaks etc on the front end? If you're using a TextaraField (over a HtmlEditorField) your database field should be 'Text' rather than html text.
23 February 2011 at 2:28am
Thanks for the reply, The database looks fine, it's not displaying tags and it's showing " rather than " which is how I'd like, so it's just somehow being pushed out as hmtl.
I'm using this..
'InsertCSS' => 'Text',
$fields->addFieldToTab('Root.Content.Main', new TextareaField('InsertCSS', 'Insert css'),'Content');
24 February 2011 at 9:48am
Did you try to use 'InsertCSS' => 'HTMLText' instead?
HTMLText adds HTML only if you manually add tags to the Textarea field, whereas Text seems to try and convert linefeeds and stuff to HTML...
24 February 2011 at 3:11pm
If the front end is pushing out the wrong thing try $InsertCSS.RAW to get the raw content from the db. Note you shouldn't use RAW for some user input as it can exploit the website.
24 February 2011 at 11:32pm
That worked perfectly, thanks will!
|Go to Top|