
If a tag is followed by the equals sign, the following text is treated as a JavaScript expression. characters like " >" are converted to their HTML code equivalents like " >") to prevent JavaScript injection or cross-site scripting attacks. The values of all attributes are escaped (e.g.

else p A variable named "title" does not exist. col if title p A variable named "title" exists.

p = 'Evaluated and escaped expression:' + title // You can add single line JavaScript comments and they are generated to HTML comments //- Introducing a single line JavaScript comment with "//-" ensures the comment isn't rendered to HTML p A line with a link a ( href = '/catalog/authors' ) Some link text | and some extra text. body h1 = title p This is a line with # and # markup.

Doctype html html ( lang = "en" ) head title = title script ( type = 'text/javascript' ).
