views:

58

answers:

1

I'm loading product reviews from an xml datasource into a dashcode text area.

The text includes basic html tags. When it's loaded into the text area the tags are not rendered they are just there like this:

 <p>Some text... etc.

Is there a way to have a Dashcode text area render the html?

Thanks!

+1  A: 

And the answer is...

When you bind a Dashcode Text part to a datasource there is a popup menu that comes up to choose what type of binding is created. One of the choices in that popup menu is "HTML".

If you select "HTML" when making the binding the text part will render the html embedded in the bound text data.

When I originally set up the binding I had selected "Text" from that popup menu. This caused the text part to display the text "as is" without rendering any embedded tags.

I kept looking for a place in the program to change that setting (once I found out about it) and it appears now that you have to reestablish the binding in order to invoke that popup menu. There does not seem to be any other way to edit the setting.

I'm just really relieved to find out that this works. I hope this helps someone else who gets stuck as I did.

Cheers!

tonyopp
How is your xml-file looks like? Mine is like that: <?xml version="1.0" encoding="UTF-8"?><news><newsentry><newsfulltext><p>Text 1</p><p>Text 2</p></newsfulltext></newsentry></news>. It says "OBJECT" in Text area in Safari when I bind it to `text` or to `HTML`. Please help. :)
beefon
I did it. I need to encode HTML entries (< == <, etc.) Now it looks O.K.
beefon
I'm glad you figured it out. I was off line for most of the day yesterday, so I just saw both of your posts now.
tonyopp