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

Commit

Permalink
Deprecates SafeHtml.createScript in favor of safevalues.scriptToHtml
Browse files Browse the repository at this point in the history
RELNOTES: Deprecates SafeHtml.createScript

PiperOrigin-RevId: 539011485
Change-Id: Ied52c93e5d575be566d95b152e813ee2716c4418
  • Loading branch information
Closure Team authored and copybara-github committed Jun 9, 2023
1 parent c894a9f commit 7c684b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions closure/goog/html/safehtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ class SafeHtml {
* @throws {!Error} If invalid attribute name or attribute value is provided.
* If attributes contains the
* language, src or text attribute.
* @deprecated Use safevalues.scriptToHtml instead.
*/
static createScript(script, attributes = undefined) {
for (let attr in attributes) {
Expand Down

0 comments on commit 7c684b7

Please sign in to comment.