code: public HtmlPolicyBuilder disallowTextIn(String... elementNames) {
      invalidateCompiledState();
      for (String elementName : elementNames) {
        elementName = HtmlLexer.canonicalName(elementName);
        textContainers.put(elementName, false);
      }
      return this;
    }
docs: Disallows text in elements with the given name.
  <p>
  This is useful when an element contains text that is not meant to be
  displayed to the end-user.
  Typically these elements are styled {@code display:none} in browsers'
  default stylesheets, or, like {@code <template>} contain text nodes that
  are eventually for human consumption, but which are created in a separate
  document fragment.