<% notes.each do |note| %> <%= h note.textline %> <% if note.code? %> ]]> <% end %> <% end %>