It's only easier to read because it meets your expectations since it looks "javascripty", but absolutely not as easy to reason about.
Both of those snippets are intended to generate HTML. In that sense there's no question which one is easier to reason about/read.