Use Javascript filter to print value.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 13:46:14 +0000 (14:46 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 13:46:14 +0000 (14:46 +0100)
src/main/resources/templates/editProfile.html

index ae0a522..4ae0ce6 100644 (file)
@@ -25,7 +25,7 @@
                        });
 
                        <%foreach fields field>
-                               registerInputTextareaSwap("#sone #edit-profile input[name=field-<% loop.count>]", "<% field.key|html>", "field-<% loop.count>", true, true);
+                               registerInputTextareaSwap("#sone #edit-profile input[name=field-<% loop.count>]", <% field.key|js>, "field-<% loop.count>", true, true);
                        <%/foreach>
 
                        /* hide all the labels. */