+
+ try {
+ $contentHtml = $converter->convert($note->{'note-content'});
+ } catch (\OCA\Grauphel\Converter\Exception $e) {
+ $contentHtml = '<div class="error">'
+ . '<p>There was an error converting the note to HTML:</p>'
+ . '<blockquote><tt>' . htmlspecialchars($e->getMessage()) . '</tt></blockquote>'
+ . '<p>Please open a bug report at'
+ . ' <a class="lined" href="http://github.com/cweiske/grauphel/issues">'
+ . 'github.com/cweiske/grauphel/issues</a>'
+ . ' and attach the XML version of the note.'
+ . '</div>';
+ }
+