Skip to content Skip to sidebar Skip to footer

After Being Returned By My Factory Service, Data Is Displaying With Visible Html Tags

My data is json_endoded($data); array, fetched by my factory service. It is then put in a Javascript variable, which is in turn used as a template. When finally brought to a page f

Solution 1:

If you're doing something like this

<div>{{myVariable}}</div>

Then change it to something like this

<divng-bind-html="myVariable"></div>

This will likely cause an error, which can be resolved using ngSanitize or $sce as explained in the documentation

Post a Comment for "After Being Returned By My Factory Service, Data Is Displaying With Visible Html Tags"