blob: 6ddc306a698ffdcd9eb5db9582f4273a349f052a [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
typedef (DOMString or TrustedHTML) HTMLString;
[
Exposed=(Window,Worker),
RuntimeEnabled=TrustedDOMTypes
] interface TrustedHTML {
[CallWith=ScriptState] static TrustedHTML escape(DOMString html);
[CallWith=ScriptState] static TrustedHTML unsafelyCreate(DOMString html);
stringifier;
};