MCPcopy
hub / github.com/flosch/pongo2 / AsSafeValue

Function AsSafeValue

value.go:30–35  ·  view source on GitHub ↗

AsSafeValue works like AsValue, but does not apply the 'escape' filter.

(i any)

Source from the content-addressed store, hash-verified

28
29// AsSafeValue works like AsValue, but does not apply the 'escape' filter.
30func AsSafeValue(i any) *Value {
31 return &Value{
32 val: reflect.ValueOf(i),
33 safe: true,
34 }
35}
36
37func (v *Value) getResolvedValue() reflect.Value {
38 if v.val.IsValid() && v.val.Kind() == reflect.Ptr {

Callers 4

callMethod · 0.85
SuperMethod · 0.85
filterTruncatecharsHTMLFunction · 0.85
filterTruncatewordsHTMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…