[master] Fix XSS in mermaid diagrams See merge request gitlab/gitlabhq!2597
[10.4] Fix stored XSS in code blocks