Skip to main content

safe

Mark the value as a string that should not be auto-escaped.

def safe(
value: string
) - > SafeString

Mark the value as a string that should not be auto-escaped.

Parameters

NameTypeDescription
valuestringThe string content to be marked as safe for HTML rendering.

Returns

TypeDescription
SafeStringThe input value wrapped in a SafeString object, signaling to the template engine that no further HTML escaping is required.