Skip to content

Commit

Permalink
remove clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Dec 8, 2023
1 parent 8982288 commit 6586365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions previewers/betatest/js/richhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ function writeContentAndData(data, fileUrl, file, title, authors) {
header.append($('<div/>').html($.i18n('richContentWarning')).addClass('center'));
subheader = $('<div/>').appendTo(header).addClass('center');
subheader.append($("<div/>").addClass("btn btn-default")
.html("<a href=\"javascript:console.log('Click');$('.preview').html(theData);\">" + $.i18n('displayWithRichContent') + "</a>"));
.html("<a href=\"javascript:$('.preview').html(theData);\">" + $.i18n('displayWithRichContent') + "</a>"));
subheader.append($("<div/>").addClass("btn btn-default")
.html("<a href=\"javascript:console.log('Click');$('.preview').html(filterXSS(theData,options));\">" + $.i18n('displayWithoutRichContent') + "</a>"));
.html("<a href=\"javascript:$('.preview').html(filterXSS(theData,options));\">" + $.i18n('displayWithoutRichContent') + "</a>"));
} else {
//Display filtered content as for normal HTML Previewer
$('.preview').append($("<div/>").html(filterXSS(data)));
Expand Down

0 comments on commit 6586365

Please sign in to comment.