Escaped echo
Use{{ $expr }} to output a value safely. Lex routes every expression through htmlspecialchars with ENT_QUOTES | ENT_SUBSTITUTE and UTF-8 encoding, so special characters like <, >, ", and ' are converted to their HTML entities before being written to the page.
Raw (unescaped) echo
Use{!! $expr !!} to output a value without any HTML escaping. The expression is inserted into the page as-is.
Template comments
Lex reuses HTML comment syntax for template comments. Any content inside<!-- ... --> is stripped at compile time and never appears in the rendered HTML source, not even as an empty comment node.
Because comments are removed during compilation, they are invisible to browsers and source-view tools — unlike standard HTML comments, which are sent to the client.
Escaping the # character
Prefix # with a backslash to output a literal # without triggering directive parsing.
Only
\# immediately followed by a letter is treated as an escape sequence. A standalone backslash or \#123 (where # is followed by a digit) is output as-is.