Skip to content

Instantly share code, notes, and snippets.

View mva's full-sized avatar

Michael van Acken mva

View GitHub Profile
diff --git a/src/hiccup/core.clj b/src/hiccup/core.clj
index e803a16..b592620 100644
--- a/src/hiccup/core.clj
+++ b/src/hiccup/core.clj
@@ -101,11 +101,17 @@
"Render a HTML tag represented as a vector."
[element]
(let [[tag attrs content] (parse-element element)]
- (if (or content (container-tags tag))
- (str "<" tag (render-attrs attrs) ">"