Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
So I've been using the HTML5 boilerplate project as a foundation for my page templates. At the bottom of the main page template I have the following markup:
<script>window.jQuery || document.write('<script src="$ThemeDir/js/libs/jquery-1.5.1.min.js">\x3C/script>')</script>
The problem I'm experiencing is the value \x3C/script> in the 2nd line is being converted to </script>. I believe this is being done by the SilverStripe template engine.
Is there a way to prevent this conversion from happening so that it remains as \x3C/script>?
I hit the very same problem today...have been chasing down a fix. Once I find one I will pass it along...and I'll keep an eye on this thread in case you find one before me.
I went back to using the original unescaped version: "%3E%3C/script%3E" instead of "\x3C/script>"
I believe the new way H5BP is being converted to a normal PHP string...so try the old way like I did or try to find a different escaping method.
Just discovered putting an additional slash in did the trick as well