mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Fix HTML clipboard import
jQuery's .html() method escapes contained text (e.g. '<' becomes '<'). This confuses the turndown parser, which then only performs unescaping, but does not convert to markdown. By using .text() instead, the unescaped content is returned and turndown can correctly generate markdown. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
27ffe2515b
commit
0f7f11e4f3
1 changed files with 1 additions and 1 deletions
|
@ -1583,7 +1583,7 @@ $('#clipboardModalClear').click(function () {
|
|||
$('#clipboardModalContent').html('')
|
||||
})
|
||||
$('#clipboardModalConfirm').click(function () {
|
||||
const data = $('#clipboardModalContent').html()
|
||||
const data = $('#clipboardModalContent').text()
|
||||
if (data) {
|
||||
parseToEditor(data)
|
||||
$('#clipboardModal').modal('hide')
|
||||
|
|
Loading…
Reference in a new issue