Skip to content

Commit

Permalink
fix \n bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan committed Aug 29, 2020
1 parent 9398bb4 commit 46b994a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function openModal(id) {
editAble = false;
}

$('#code-modal .modal-body pre code').text(codeItem.code.replace(/\\n/g, '\n'));
$('#code-modal .modal-body pre code').text(codeItem.code).html();
$('#copyToClipboard').data('id', codeItem._id);
$('#editSnippet').data('id', codeItem._id);
$('#deleteSnippet').data('id', codeItem._id);
Expand Down

0 comments on commit 46b994a

Please sign in to comment.