If you put an inline javacript code such as google analytics and others or stylesheet blocks in your html templates, You may put {literal} before the code and put {/literal} after the code.
Example:
{literal} <script type="text/javascript"> <!-- function isblank(field) { if (field.value == '') { return false; } else { document.loginform.submit(); return true; } } // --> </script> {/literal}
For more details please check Smarty tutorials here...
Other tutorials in General Questions:
Popular Tutorials: