Some KRL statements and expressions use extended quotes. Extended quotes allow multiple line passages that contain the double quote symbol ("
) to be more easily entered.
Chevrons
Chevrons enclose the items to be quoted in double less-than and greater-than signs (<<...>>
). For example:
somevar = << <p>This is <em>some</em> HTML.<br/> <a href="http://www.google.com">Search Google</a> </p> >>;
Values inside chevrons are treated as strings (with the exception of beestings). The whitespace is preserved.
Escaping
Like strings, a backslash is needed to allow the terminator (>>
) inside.
var_1 = << >\> >>; var_2 = << >> // NOT << \>> >>
There's an issue for more complex escaping problems.