<% if @extension.isGwt() %>
<div id="gwtpage"> </div>
<script>
- loadGWT('<%= @extension.getId() -%>', <%= @resource.id -%>,'<%= @resource.key -%>', '<%= @resource.name -%>', '<%= @resource.scope -%>', '<%= @resource.qualifier -%>', '<%= @resource.language -%>');
+ loadGWT('<%= @extension.getId() -%>', <%= @resource.id -%>,'<%= escape_javascript(h(@resource.key)) -%>', '<%= escape_javascript(h(@resource.name)) -%>',
+ '<%= @resource.scope -%>', '<%= @resource.qualifier -%>', '<%= escape_javascript(h(@resource.language)) -%>');
</script>
<% elsif @extension.getTarget() # ruby on rails page %>
<%= render :inline => @extension.getTarget().getTemplate() -%>
<% end %>
</div>
-</div>
\ No newline at end of file
+</div>