• Post Reply Bookmark Topic Watch Topic
  • New Topic

AngularJs - html rendering  RSS feed

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We use elastic search highlighter and get the below code from the highlighter.



We display the result in html as follows.






I have included sanitize.js and have ngSanitize in the angular module. Still i see the raw data in the page not the rendered data.

Html tags are not rendered and seeing the tags in the browser.

Am i missing anything here?

Thanks,
Baskar.S
 
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Baskar ,

The ngSanitize module should be added as dependency to the module. Are you sure you added that in the module dependency list like this ?



Thanks
Srikkanth
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!