Questions tagged [ngsanitize]

The `ngSanitize` module provides functionality to sanitize HTML.

See $sanitize for usage.

93 questions
0
votes
1 answer

How to display formatted html in text area in angularjs?

I am trying to display html by using angularjs sanitize module and ng-bind-html attribute on the element. It works fine if I have the attribute on a div element.
But I need the same text…
Jyina
  • 2,530
  • 9
  • 42
  • 80
0
votes
0 answers

Image is not rendering on html page

I have issue in rendering image on UI, I have used ng-bind-html. I am getting the text as it is but image is not shwoing. In angular- $scope.conversation.message= $sce.trustAsHtml(response); In HTML -
Piyu
  • 17
  • 5
0
votes
2 answers

Using ng-bind-html or something similar in Select-Option tag

I have this code below. Which is a straight forward way of using NgOptions to plot some options in a form. function NameCtrl($scope) { $scope.theOptions = [{ 'label': 'The Opt', 'id': 3 }] }
Roy
  • 1,939
  • 1
  • 14
  • 21
0
votes
1 answer

XSS Vurnability exploiting in AngularJS (Simple Example)

I am trying to exploit the XSS Vurnablity in AngularJS by a simple example: SNIPPET