mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
getting rid of note complement WIP
This commit is contained in:
@@ -24,13 +24,13 @@ function exportToOpml(taskContext, branch, version, res) {
|
||||
|
||||
if (opmlVersion === 1) {
|
||||
const preparedTitle = escapeXmlAttribute(title);
|
||||
const preparedContent = note.isStringNote() ? prepareText(note.getContent()) : '';
|
||||
const preparedContent = note.hasStringContent() ? prepareText(note.getContent()) : '';
|
||||
|
||||
res.write(`<outline title="${preparedTitle}" text="${preparedContent}">\n`);
|
||||
}
|
||||
else if (opmlVersion === 2) {
|
||||
const preparedTitle = escapeXmlAttribute(title);
|
||||
const preparedContent = note.isStringNote() ? escapeXmlAttribute(note.getContent()) : '';
|
||||
const preparedContent = note.hasStringContent() ? escapeXmlAttribute(note.getContent()) : '';
|
||||
|
||||
res.write(`<outline text="${preparedTitle}" _note="${preparedContent}">\n`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user