Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 7c684b7

Browse files
Closure Teamcopybara-github
authored andcommitted
Deprecates SafeHtml.createScript in favor of safevalues.scriptToHtml
RELNOTES: Deprecates SafeHtml.createScript PiperOrigin-RevId: 539011485 Change-Id: Ied52c93e5d575be566d95b152e813ee2716c4418
1 parent c894a9f commit 7c684b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

closure/goog/html/safehtml.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ class SafeHtml {
511511
* @throws {!Error} If invalid attribute name or attribute value is provided.
512512
* If attributes contains the
513513
* language, src or text attribute.
514+
* @deprecated Use safevalues.scriptToHtml instead.
514515
*/
515516
static createScript(script, attributes = undefined) {
516517
for (let attr in attributes) {

0 commit comments

Comments
 (0)