• Resolved kengr

    (@kengr)


    I want to place some JavaScript code in the footer area, and it contains the character < in an expression. In the Scripts in Footer code window in this plug-in, I see the error message popup saying “Special character must be escaped: [ < ].” But it’s not clear to me exact how to escape the < character. Do I surround it with square brackets (which doesn’t seem to work), as implied in the error message, or use some sort of escape character prefix? Thanks.

    • This topic was modified 3 years, 8 months ago by kengr.
Viewing 1 replies (of 1 total)
  • Thread Starter kengr

    (@kengr)

    Never mind. I hadn’t placed the JavaScript code inside a <script> tag. Once I did that, the error message disappeared and the correct code was generated. Sorry for the noise.

Viewing 1 replies (of 1 total)
  • The topic ‘Exactly how should < be escaped in javascript footer code?’ is closed to new replies.