code: public HtmlPolicyBuilder allowTextIn(String... elementNames) {
      invalidateCompiledState();
      for (String elementName : elementNames) {
        elementName = HtmlLexer.canonicalName(elementName);
        textContainers.put(elementName, true);
      }
      return this;
    }
docs: Allows text content in the named elements.
  By default, text content is allowed in any
  {@link #allowElements allowed elements} that can contain character data per
  the HTML5 spec, but text content is not allowed by default in elements that
  contain content of other kinds (like JavaScript in {@code <script>}
  elements.
  <p>
  To write a policy that whitelists {@code <script>} or {@code <style>}
  elements, first {@code allowTextIn("script")}.