fix innerHTML of blockquotes being stripped out, refactor