Fixed html quoting in contenteditable title.

This commit is contained in:
Martin Edenhofer 2012-11-13 20:16:50 +01:00
parent 87bd535ad5
commit 7c996c72ca

View file

@ -335,6 +335,9 @@ class Index extends App.Controller
.replace(/<.+?>/g, '')
title = ('' + title)
.replace(/&nbsp;/g, ' ')
.replace(/&amp;/g, '&')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>')
if title is '-'
title = ''
@ticket.title = title