How to disallow safeHTML escaping certain chars?

Hi,
here’s the snippet:

 {{< highlight java >}}
 {{% code file="basics/strings1.java" %}}
 {{< /highlight >}}

and the code shortcode:

{{ $file := .Get "file" | readFile }}
{{ (print $file) }}

What’s being rendered:
image
I want var name = "John"; to be printed. How do I achieve this? I have to stop certain characters from being escaped.

Hi there,

Have a look at htmlUnescape.