Skip to content

Commit

Permalink
enabled marked sanitization (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
iknox-fa authored Dec 10, 2021
1 parent 76ee829 commit a805ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/index.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ angular
config(['markedProvider', '$locationProvider',
function(markedProvider, $locationProvider) {

markedProvider.setOptions({gfm: true});
markedProvider.setOptions({gfm: true, sanitize: true});
markedProvider.setRenderer({
table: function(header, body) {
return "<table class='table'><thead>" + header + "</thead><tbody>"+ body + "</tbody></table>"
Expand Down

0 comments on commit a805ac8

Please sign in to comment.