Skip to main content

format_escaped_str

No overview available.

def format_escaped_str(
input_str: string
) - > string

Escapes special characters in a string to ensure it is safe for use in formatted output or shell commands.

Parameters

NameTypeDescription
input_strstringThe raw string containing characters that require escaping.

Returns

TypeDescription
stringThe sanitized string with all necessary escape sequences applied.