app/bower_components/angular-sanitize/angular-sanitize.js
Function $SanitizeProvider
has 243 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $SanitizeProvider() {
var svgEnabled = false;
this.$get = ['$$sanitizeUri', function($$sanitizeUri) {
if (svgEnabled) {
File angular-sanitize.js
has 321 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.5.10
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
Function htmlParserImpl
has 50 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) {
Avoid deeply nested control flow statements. Open
Open
if (node.nodeType === 1) {
handler.end(node.nodeName.toLowerCase());
}
Avoid deeply nested control flow statements. Open
Open
if (node === inertBodyElement) break;