<% if article.from: %>
-
+
<% end %>
<% if article.to: %>
-
<%- @T( 'From' ) %>
- <%= article.from %>
+ <%- @AddressLine(article.from) %>
+
<% end %>
<% if article.cc: %>
-
<%- @T( 'To' ) %>
- <%= article.to %>
+ <%- @AddressLine(article.to) %>
-
<%- @T( 'Kopie' ) %>
- <%= article.cc %>
+
+
<% end %>
<% if article.subject: %>
- <%- @T( 'Cc' ) %>
+ <%- @AddressLine(article.cc) %>
+
<% end %>
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
index b127b769d..f344aa040 100644
--- a/app/assets/javascripts/application.js
+++ b/app/assets/javascripts/application.js
@@ -77,6 +77,15 @@ function clone(object) {
return JSON.parse(JSON.stringify(object));
}
+function HTMLEscape(string) {
+ return ( '' + string )
+ .replace(/&/g, '&')
+ .replace(//g, '>')
+ .replace(/"/g, '"')
+ .replace(/'/g, ''')
+}
+
jQuery.event.special.remove = {
remove: function(e) {
if (e.handler) e.handler();
<%- @T( 'Subject' ) %>
- <%= article.subject %>
+ <%= article.subject %>