(code->html code)

Returns the code in the given string with html added.

Example

(code->html "(+ 1 2)")

Source

(defn code->html "Returns the code in the given string with html added." [code] (->> (ps/parse code) (ps/flatten node->html) str/join))