Skip to content

Commit

Permalink
Merge pull request #50 from legalthings/double-quote-in-help-text
Browse files Browse the repository at this point in the history
LD: Field helptext doesn't support double quotes
  • Loading branch information
jasny authored May 9, 2017
2 parents c1285fe + 6cad409 commit 285cc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/legalform.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function LegalForm($) {
$('<span class="help"><strong>?</strong></span>')
.attr('rel', 'tooltip')
.attr('data-html', 'true')
.attr('data-title', $('<div>').text(data.helptext).html().replace(/\n/g, '<br>')
.attr('data-title', $('<div>').text(data.helptext).html().replace(/\n/g, '<br>').replace(/"/g, '&quot;')
)[0].outerHTML
);
}
Expand Down

0 comments on commit 285cc79

Please sign in to comment.