support newlines in event titles
This commit is contained in:
parent
c002cef649
commit
c0c144569f
|
@ -510,12 +510,12 @@ function smartProperty(obj, name) { // get a camel-cased/namespaced property of
|
||||||
}
|
}
|
||||||
|
|
||||||
function htmlEscape(s) {
|
function htmlEscape(s) {
|
||||||
return s
|
return s.replace(/&/g, '&')
|
||||||
.replace(/&/g, '&')
|
|
||||||
.replace(/</g, '<')
|
.replace(/</g, '<')
|
||||||
.replace(/>/g, '>')
|
.replace(/>/g, '>')
|
||||||
.replace(/'/g, ''')
|
.replace(/'/g, ''')
|
||||||
.replace(/"/g, '"');
|
.replace(/"/g, '"')
|
||||||
|
.replace(/\n/g, '<br />');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,11 @@
|
||||||
start: new Date(y, m, d-5),
|
start: new Date(y, m, d-5),
|
||||||
end: new Date(y, m, d-2)
|
end: new Date(y, m, d-2)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Event with \n newline',
|
||||||
|
start: new Date(y, m, d),
|
||||||
|
end: new Date(y, m, d)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: 'T event',
|
title: 'T event',
|
||||||
start: y + '-06-06T10:20:00',
|
start: y + '-06-06T10:20:00',
|
||||||
|
|
Loading…
Reference in a new issue