parent
564c83720b
commit
ca615a86a5
6 changed files with 119 additions and 103 deletions
|
@ -166,6 +166,10 @@ function _formatTemplateSimple(source, mergeTags, isHTML) {
|
|||
}
|
||||
}
|
||||
|
||||
if (value === undefined) { // in RSS it may happen that the key is present, but the value is undefined
|
||||
return '';
|
||||
}
|
||||
|
||||
const containsHTML = /<[a-z][\s\S]*>/.test(value);
|
||||
return isHTML ? he.encode((containsHTML ? value : value.replace(/(?:\r\n|\r|\n)/g, '<br/>')), {
|
||||
useNamedReferences: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue