Improved shown realname of email addresses.
This commit is contained in:
parent
d11a954450
commit
13dd008803
1 changed files with 8 additions and 1 deletions
|
@ -212,7 +212,14 @@ class App extends Spine.Controller
|
||||||
if result
|
if result
|
||||||
result = result + ', '
|
result = result + ', '
|
||||||
if item.name
|
if item.name
|
||||||
result = result + App.Utils.htmlEscape(item.name) + ' '
|
item.name = item.name
|
||||||
|
.replace(',', '')
|
||||||
|
.replace(';', '')
|
||||||
|
.replace('"', '')
|
||||||
|
.replace('\'', '')
|
||||||
|
if item.name.match(/\@|,|;|\^|\+|#|§|\$|%|&|\/|\(|\)|=|\?|\*/)
|
||||||
|
item.name = "\"#{item.name}\""
|
||||||
|
result = "#{result}#{App.Utils.htmlEscape(item.name)} "
|
||||||
if item.address
|
if item.address
|
||||||
result = result + " <span class=\"text-muted\"><#{App.Utils.htmlEscape(item.address)}></span>"
|
result = result + " <span class=\"text-muted\"><#{App.Utils.htmlEscape(item.address)}></span>"
|
||||||
result
|
result
|
||||||
|
|
Loading…
Reference in a new issue