Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…s.git into GDCCdevelop
  • Loading branch information
qqmyers committed May 30, 2024
2 parents b14d4ab + 345f121 commit 8ccccda
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions previewers/betatest/js/richhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ 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:$('.preview').html(theData);\">" + $.i18n('displayWithRichContent') + "</a>"));
.html($('<a/>').html( $.i18n('displayWithRichContent'))
.click(function(){console.log('Click');$('.preview').html(theData);})
)
);
subheader.append($("<div/>").addClass("btn btn-default")
.html("<a href=\"javascript:$('.preview').html(filterXSS(theData,options));\">" + $.i18n('displayWithoutRichContent') + "</a>"));
.html($('<a/>').html( $.i18n('displayWithoutRichContent'))
.click(function(){console.log('Click');$('.preview').html(filterXSS(theData,options));})
)
);
} else {
//Display filtered content as for normal HTML Previewer
$('.preview').append($("<div/>").html(filterXSS(data)));
Expand Down

0 comments on commit 8ccccda

Please sign in to comment.