src/sanitizer.js
/**
 * Sanitizes user provided HTML to mustache templates, used in amp-mustache.
 *
 * WARNING: This method should not be used elsewhere as we do not strip out
 * the style attribute in this method for the inline-style experiment.
 * We do so in sanitizeHtml which occurs after this initial sanitizing.
 *
 * @param {string} html
 * @param {!Document} doc
 * @return {string}
 */
Sanitizes user provided HTML to mustache templates, used in amp-mustache.
WARNING: This method should not be used elsewhere as we do not strip out
the style attribute in this method for the inline-style experiment.
We do so in sanitizeHtml which occurs after this initial sanitizing.

@param {string} html
@param {!Document} doc
@return {string}
Sanitizes user provided HTML to mustache templates used in amp - mustache . WARNING : This method should not be used elsewhere as we do not strip out the style attribute in this method for the inline - style experiment . We do so in sanitizeHtml which occurs after this initial sanitizing . @param { string } html @param { !Document } doc @return { string }
function sanitizeTagsForTripleMustache(html, doc) {
  return htmlSanitizer.sanitizeWithPolicy(html, (tagName, attribs) =>
    tripleMustacheTagPolicy(tagName, attribs, doc)
  );
}
function sanitizeTagsForTripleMustache ( html , doc ) { return htmlSanitizer . sanitizeWithPolicy ( html , ( tagName , attribs ) => tripleMustacheTagPolicy ( tagName , attribs , doc ) ) ; }
Sanitizes user provided HTML to mustache templates, used in amp-mustache.
Sanitizes user provided HTML to mustache templates used in amp - mustache .