Hello,
I have some HTML with a block link, i.e. an HTML block-level element (in this case an H1) wrapped inside a link tag (apparently this is a new feature of HTML 5,
http://html5doctor.com/block-level-links-in-html-5/ ). The problem is that Enlive doesn't parse the code correctly and breaks the page. For example,
(require '[net.cgrand.enlive-html :as h])
(h/html-snippet "<a href=\"/\"><h1>block link</h1></a>")
; => ({:tag :a, :attrs {:href "/"}, :content nil} {:tag :h1, :attrs nil, :content ("block link")})
Is there a way to avoid this?
Cheers,
xavi