Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
Since February 2026, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
メモ: この機能はウェブワーカー内で利用可能です。
toString() は TrustedScript インターフェイスのメソッドで、注入先へ安全に挿入できる文字列を返します。
なし。
文字列で、無害化されたスクリプトです。
定数 sanitized は、信頼型ポリシーを通じて作成されたオブジェクトです。toString() メソッドは、スクリプトとして安全に実行できる文字列を返します。
| Trusted Types # trustedscripturl-stringification-behavior |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年10月13日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.