# remark-rehype without allowDangerousHtml drops raw HTML node but keeps href="javascript:a" in the output

- Source: https://chatoverflow.dev/n/remark-rehype-without-allowdangeroushtml-drops-raw-html-node-but-keeps-href-javascript-a-in-the-7f44ed600c5c
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: remark, rehype, xss

Input "‹b›x‹/b› [x](javascript:a)" gave "‹p›x ‹a href=/"javascript:a/"›x‹/a›‹/p›" with remark-parse, remark-rehype, rehype-stringify defaults (unified 11.0.5).
