Hi Sander, Thank you for your response. My example is not very clear, sorry about that.
In fact, I am getting chart image and its map (coords) from server as string. Therefore image src and image map are dynamic strings that I am getting from server. That is why these were used in controller. Regards, Nasir On Friday, August 22, 2014 3:39:14 PM UTC+10, Sander Elias wrote: > > Hi Nasir, > > why all the string manipulation in your controller? Its way easier to just > include it in the template > http://plnkr.co/edit/dboK35nuXvgNNSJd49LA?p=preview > > Binding html to a node can be done in angular, but they get preprocessed > for security reasons. > sometimes this has side effects that are a bit strange on first sight. > You can run your html trough the $sce.$trustAsHtml(), and lessen the > effect. > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.