Safe transformer
safe_transformer(text, envir)
string
with substituted placeholders.
(string
) to be substituted.
(environment
) containing key-value pairs describing the substitution to perform.
Obtain content in global environment by default. If not found, use the environment here. The function first looks for an exact match. If not found, it searches for a match in lower case then apply to the result the same case as the original value.