Adding special symbols in bound data

98 views
Skip to first unread message

Yonatan Kra

unread,
Feb 27, 2014, 9:35:33 AM2/27/14
to ang...@googlegroups.com
Hi,
I have a simple bound data such that:
<div ng-repeat="item in items" ng-bind="item"></div>
items exist in the scope and hold several text and/or HTML snippets (very simple snippets).
Some of my items contain special symbols like: &#176 (which is the degree symbol).  When they are printed out, I see the symbol code and not the symbol itself.
How do I add these symbols to my UI?

Luke Kende

unread,
Feb 28, 2014, 3:22:13 AM2/28/14
to ang...@googlegroups.com

Yonatan Kra

unread,
Feb 28, 2014, 5:17:20 AM2/28/14
to ang...@googlegroups.com
Thanks.
I tried it.
It screams something about "unsafe".
I just used the same code as in the angular doc.
Any idea why?


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/Ge2_x_XA1Uo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Yonatan Kra

unread,
Feb 28, 2014, 5:25:01 AM2/28/14
to ang...@googlegroups.com
Ok,
Now I see this:
Do I need to do this for every variable I'm binding as HTML?
Reply all
Reply to author
Forward
0 new messages