Questions tagged [angular-sanitizer]

Sanitizer is used by the views to sanitize potentially dangerous values.

To find more information :

12 questions
32
votes
8 answers

Uncaught TypeError: angular.lowercase is not a function

Uncaught TypeError: angular.lowercase is not a function this error in my angularjs application, and entire application is not running. This is its showing in textAngular-sanitize.js:413. Not able to debug, i tried using same version as of…
Sudarshan Kalebere
  • 3,813
  • 3
  • 34
  • 64
4
votes
1 answer

AngularJS ngSanitize Error on 1.7.0

I've got pretty much this error: AngularJS ngSanitize Error short version: "lowercase is not a function". While my application has AngularJS enforced to 1.4.9, we didn't enforce angular-sanitize, so it resolves to 1.7.0 and on that version of…
p4x
  • 384
  • 1
  • 5
  • 16
3
votes
1 answer

How to check if html with iframes is safe?

I'm getting from API strings of html code which may contain embedded videos from the following services: youtube.com, vimeo.com, dailymotion.com, prezi.com If I'm sure it is secure enough I can convert them to trusted SafeHtml (to bypass…
Yuriy K.
  • 241
  • 5
  • 12
2
votes
1 answer

Angular 10 - Sanitizing style and script, provided in a string

I am trying to figure out how DomSanitizer really works in Angular 10. I've been trying to sanitize the following CSS string without any luck: const testString = 'transform: rotate(70deg);color: blue;'; const result =…
Peter
  • 33
  • 4
2
votes
2 answers

Display style tag in angular js while translation

This is my controller file wherein $scope.htmlCompanyFromScope = 'Micro'; $scope.htmlTagFromScope = "MicroTag"; My *.resx file contains TranslationValue = "{{htmlCompany}} tag is {{htmlTag}}" And in my HTML I define…
0
votes
1 answer

Angular innerHTML not working this string text

I'm facing an issue I'm getting an string const str = '

Please ensure Process Model diagram represents Functions adequately (boxes that represent an activity or group of activities that produce an outcome):


Alia
  • 9
  • 3
0
votes
1 answer

Sanitization in Angular

I have a child model that has an attribute photoPath export interface Child { chIld: number; firstName: string; photoPath?: string; photos: Photo[]; } I am trying to sanitize the photoPath to bypass angular security export…
King Genius
  • 51
  • 1
  • 1
  • 6
0
votes
2 answers

angular sanitize throwing error while using script tag on the variable

Trying to implement the angular sanitizer on my application using angular sanitizer but it's not working as expected. angular.module('sanitizeExample', ['ngSanitize']) .controller('ExampleController', ['$scope', '$sce', function($scope,…
Govinda raj
  • 613
  • 3
  • 16
  • 31
0
votes
0 answers

tether-shepherd not compatible with angular version 1.7.0

Earlier I was using angular version 1.5 and angular sanitize version 1.5. But now I have updated my dependency from version 1.5 to 1.7 for both angular and angular sanitize and in the updated version Shepard cards are not working. So anybody have…
Kumar Harsh
  • 423
  • 5
  • 26
0
votes
1 answer

Sanitize some translate values but not others

I have a angular-translate directive that takes arguments, which are mixed. Some are user-generated, others are HTML that must be compiled (with translate-compile). See this plunker for a working, greatly simplified example. When the…
berkes
  • 26,996
  • 27
  • 115
  • 206
0
votes
1 answer

Why doesn't angular's $sanitize allow input and button elemnts?

I have a question about angular-sanitize($sanitize)[1]. Why doesn't it allow input and button elements? Example code: $sanitize('') // "" $sanitize('') // "" I have looked at the code and saw that there are hard-coded…
maksimr
  • 4,891
  • 2
  • 23
  • 22
0
votes
1 answer

Problems with forced escaping of characters when creating AngularJs element

I stumbled upon an issue with AngularJS and creation of elements. In short: I need to create an element with html contents, but I do want to have the reference to that element at hand, so that I can perform some actions on it without actually…