parameters: (base_str, *args, **kwargs)
return_statement: return Script.String(base_str.format(*args, **kwargs), safe=True)
docstring: Indicates a string is safe to use and will not compromise security.
  
      NOTE: The caller is reponsible for checking that the string is actually safe.
      This function serves only to mark the string as such.
  
      Can work with format strings as well. For example:
      ::
  
          safe("{:} is my name", "polygraphy")
              -> "'polygraphy' is my name"
  
          safe("{:} is my name", inline("polygraphy"))
              -> "polygraphy is my name"
docstring_summary: Indicates a string is safe to use and will not compromise security.
docstring_tokens: Indicates a string is safe to use and will not compromise security .
function: def safe(base_str, *args, **kwargs):
      """
      Indicates a string is safe to use and will not compromise security.
  
      NOTE: The caller is reponsible for checking that the string is actually safe.
      This function serves only to mark the string as such.
  
      Can work with format strings as well. For example:
      ::
  
          safe("{:} is my name", "polygraphy")
              -> "'polygraphy' is my name"
  
          safe("{:} is my name", inline("polygraphy"))
              -> "polygraphy is my name"
      """
      args = [repr(arg) for arg in args]
      kwargs = {key: repr(val) for key, val in kwargs.items()}
      return Script.String(base_str.format(*args, **kwargs), safe=True)
function_tokens: def safe ( base_str , * args , * * kwargs ) : args = [ repr ( arg ) for arg in args ] kwargs = { key : repr ( val ) for key , val in kwargs . items ( ) } return Script . String ( base_str . format ( * args , * * kwargs ) , safe = True )