use @write(content); to write raw content. Please include the semicolon after the statement or else the parser will try too write the result of write.

the parser will translate this:

<a href="">@write('good');</a>
<a href="">@write('bad')</a>
into something like this:
write('<a href="">')
write('good')
write('</a>\n')
write('<a href="">')
write(write('bad'))
write('</a>\n')
and the result will be:
good
bad
As you can see, the 'bad' syntax does work. It's just less efficient.