types/src/main/java/com/google/common/html/types/SafeHtmls.java
public static SafeHtml fromScriptWithCspNonce(SafeScript script, String cspNonce) {
    return create("<script type=\"text/javascript\" nonce=\"" + htmlEscapeInternal(cspNonce)
        + "\">" + script.getSafeScriptString() + "</script>");
  }
public static SafeHtml fromScriptWithCspNonce(SafeScript script, String cspNonce) {
    return create("<script type=\"text/javascript\" nonce=\"" + htmlEscapeInternal(cspNonce)
        + "\">" + script.getSafeScriptString() + "</script>");
  }
public static SafeHtml fromScriptWithCspNonce ( SafeScript script , String cspNonce ) { return create ( "<script type=\"text/javascript\" nonce=\"" + htmlEscapeInternal ( cspNonce ) + "\">" + script . getSafeScriptString ( ) + "</script>" ) ; }
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.
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 .