code: function sanitizeHtml(unsafeHtmlInput) {
  	        try {
  	            var containerEl = getInertElement();
  	            // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).
  	            var unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';
  	            // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser
  	            // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.
  	            var mXSSAttempts = 5;
  	            var parsedHtml = unsafeHtml;
  	            do {
  	                if (mXSSAttempts === 0) {
  	                    throw new Error('Failed to sanitize html because the input is unstable');
  	                }
  	                mXSSAttempts--;
  	                unsafeHtml = parsedHtml;
  	                DOM.setInnerHTML(containerEl, unsafeHtml);
  	                if (DOM.defaultDoc().documentMode) {
  	                    // strip custom-namespaced attributes on IE<=11
  	                    stripCustomNsAttrs(containerEl);
  	                }
  	                parsedHtml = DOM.getInnerHTML(containerEl);
  	            } while (unsafeHtml !== parsedHtml);
  	            var sanitizer = new SanitizingHtmlSerializer();
  	            var safeHtml = sanitizer.sanitizeChildren(DOM.getTemplateContent(containerEl) || containerEl);
  	            // Clear out the body element.
  	            var parent_1 = DOM.getTemplateContent(containerEl) || containerEl;
  	            for (var _i = 0, _a = DOM.childNodesAsList(parent_1); _i < _a.length; _i++) {
  	                var child = _a[_i];
  	                DOM.removeChild(parent_1, child);
  	            }
  	            if (_angular_core.isDevMode() && sanitizer.sanitizedSomething) {
  	                DOM.log('WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss).');
  	            }
  	            return safeHtml;
  	        }
  	        catch (e) {
  	            // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.
  	            inertElement = null;
  	            throw e;
  	        }
  	    }
docs: Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
  the DOM in a browser environment.