code: public static SafeHtml fromScriptWithCspNonce(SafeScript script, String cspNonce) {
      return create("<script type=\"text/javascript\" nonce=\"" + htmlEscapeInternal(cspNonce)
          + "\">" + script.getSafeScriptString() + "</script>");
    }
docs: Wraps a SafeScript inside a &lt;script type="text/javascript"&gt; tag.
  The tag has a nonce attribute populated from the provided CSP nonce value.