My database stores product information, and many of them are organized into lists. I am loading data into Angular as $scope.post .
For example,
$scope.post.size_description = '<li> Fits true to size. Take your normal size\r</li> <li> Slim-cut, mid-rise style</li> <li> Long in length, alter to fit</li> <li> Model wears an IT 48\r</li> <li> Model measures: waist size 32, height 6\'1"/ 185cm\r</li>'.
When I try to load this data into my Angular application, it becomes displayed as text (i.e., <li> not parsed). I understand that this probably happens for security reasons, but are there any ways around it?
javascript html angularjs escaping
Jascination Jul 24 '13 at 6:31 2013-07-24 06:31
source share