myems-admin/js/angular/angular-sanitize.js
Function $SanitizeProvider
has 294 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $SanitizeProvider() {
var hasBeenInstantiated = false;
var svgEnabled = false;
this.$get = ['$$sanitizeUri', function($$sanitizeUri) {
File angular-sanitize.js
has 376 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.8.3
* (c) 2010-2020 Google LLC. http://angularjs.org
* License: MIT
*/
Function htmlParserImpl
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlParserImpl(html, handler) {
if (html === null || html === undefined) {
html = '';
} else if (typeof html !== 'string') {
html = '' + html;
Function htmlSanitizeWriterImpl
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlSanitizeWriterImpl(buf, uriValidator) {
var ignoreCurrentElement = false;
var out = bind(buf, buf.push);
return {
start: function(tag, attrs) {
Function getInertBodyElement
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getInertBodyElement /* function(html: string): HTMLBodyElement */ = (function(window, document) {
if (isDOMParserAvailable()) {
return getInertBodyElement_DOMParser;
}
Avoid deeply nested control flow statements. Open
Open
if (node === inertBodyElement) break;
Avoid deeply nested control flow statements. Open
Open
if (node.nodeType === 1) {
handler.end(node.nodeName.toLowerCase());
}