JsonML, in Ruby Simply. Example require 'jsonml' JsonML.to_html_text([ 'html', ['body', { class: "small" }, 'Hello World' ]])