As a sanity test, at the head of my HTML page, I'm trying to do a very simple SSI echo
to indicate to the browser that SSI is working:
index.html:
<script>var ssi_enabled = false</script>
<!--# set var="test" value="<script>ssi_enabled=true</script>" -->
<!--# echo var="test" -->
then later in JS:
if (!ssi_enabled) { console.log("SSI is not enabled!"); }
But when nginx echo
es the string, the HTML tags are sanitized as follows:
<script>ssi_enabled=true</script>
I can't find anything in the nginx docs that indicates how to echo
raw HTML.
Yes I know I could import a html file, but was trying to avoid it as that adds more complexity. Seems like this could be done but I'm just missing the correct parameter for echo
.
Thanks