Add <h1> and <h2> elements to sanitizer options.
This commit is contained in:
Owen Conti
2017-10-08 09:09:29 -06:00
parent 1d00c952d6
commit 729fd71546

View File

@@ -29,7 +29,7 @@ Markdown.propTypes = {
export default Markdown export default Markdown
const sanitizeOptions = { const sanitizeOptions = {
allowedTags: sanitize.defaults.allowedTags.concat([ "img" ]), allowedTags: sanitize.defaults.allowedTags.concat([ "h1", "h2", "img" ]),
textFilter: function(text) { textFilter: function(text) {
return text.replace(/&quot;/g, "\"") return text.replace(/&quot;/g, "\"")
} }