in case developers explicitly marked an input as safe, we will honor the setting and avoid applying any escaping to it.
for unsupported output expression contexts such as inside <script>, we align with Handlebars by applying exactly the default filter, i.e., Handlebars.escapeExpression()
this implementation is handlebars-specific.
<script>
, we align with Handlebars by applying exactly the default filter, i.e., Handlebars.escapeExpression()