Skip to content

Commit

Permalink
Merge c1c3a1b into a73e09c
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyichen committed May 20, 2021
2 parents a73e09c + c1c3a1b commit 03bb264
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/widgets/abstract/templates/abstract_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ <h4 class="sr-only">Abstract</h4>
{{/if}} {{#if comment}}
<dt>Comments:</dt>
<dd>
{{ comment }}
{{{ comment }}}
</dd>
{{/if}} {{#if pubnote}}
<dt>E-Print Comments:</dt>
Expand Down
4 changes: 4 additions & 0 deletions src/js/widgets/list_of_things/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,11 @@ define([

if (docs && docs.length) {
// make sure the new docs close highlights if they aren't there
const dummyElement = $('<textarea/>');
var newDocs = _.map(docs, function(d) {
if (d.highlights) {
d.highlights = d.highlights.map((h) => dummyElement.html(h).text()); // get the decoded html text
}
return _.extend(d, {
showHighlights: typeof d.highlights !== 'undefined',
showCheckbox: !!self.model.get('showCheckboxes'),
Expand Down

0 comments on commit 03bb264

Please sign in to comment.