package legacyconversions

Import Path
	github.com/google/safehtml/legacyconversions (on go.dev)

Dependency Relation
	imports 2 packages, and imported by 2 packages

Involved Source Files Package legacyconversions provides functions to create values of package safehtml types from plain strings. This package is functionally equivalent to package uncheckedconversions, but is only intended for temporary use when upgrading code to use package safehtml types. New code must not use the conversion functions in this package. Instead, new code should create package safehtml type values using the functions provided in package safehtml or package safehtml/template. If neither of these options are feasible, new code should request a security review to use the conversion functions in package safehtml/uncheckedconversions instead.
Package-Level Functions (total 7, all are exported)
RiskilyAssumeHTML converts a plain string into a HTML. This function must only be used for refactoring legacy code.
RiskilyAssumeIdentifier converts a plain string into an Identifier. This function must only be used for refactoring legacy code.
RiskilyAssumeScript converts a plain string into a Script. This function must only be used for refactoring legacy code.
RiskilyAssumeStyle converts a plain string into a Style. This function must only be used for refactoring legacy code.
RiskilyAssumeStyleSheet converts a plain string into a StyleSheet. This function must only be used for refactoring legacy code.
RiskilyAssumeTrustedResourceURL converts a plain string into a TrustedResourceURL. This function must only be used for refactoring legacy code.
RiskilyAssumeURL converts a plain string into a URL. This function must only be used for refactoring legacy code.
Package-Level Variables (total 7, none are exported)