package uncheckedconversions
import "github.com/google/safehtml/template/uncheckedconversions"
Package uncheckedconversions provides functions to create values of safehtml/template types from plain strings. Use of these functions could potentially result in safehtml/template type values that violate their type contract, and hence result in security vulnerabilties.
Index ¶
- func TrustedSourceFromStringKnownToSatisfyTypeContract(s string) template.TrustedSource
- func TrustedTemplateFromStringKnownToSatisfyTypeContract(s string) template.TrustedTemplate
Functions ¶
func TrustedSourceFromStringKnownToSatisfyTypeContract ¶
func TrustedSourceFromStringKnownToSatisfyTypeContract(s string) template.TrustedSource
TrustedSourceFromStringKnownToSatisfyTypeContract converts a string into a TrustedSource.
func TrustedTemplateFromStringKnownToSatisfyTypeContract ¶
func TrustedTemplateFromStringKnownToSatisfyTypeContract(s string) template.TrustedTemplate
TrustedTemplateFromStringKnownToSatisfyTypeContract converts a string into a TrustedTemplate.
Source Files ¶
- Version
- v0.1.0 (latest)
- Published
- Apr 30, 2022
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 weeks ago –
Tools for package owners.