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.

Reply via email to