(ns editor.helpers.utils
  (:require [om-tools.dom :as dom]))

(defn model->json [model]
  (.stringify js/JSON (clj->js model) nil 2))

(defn json->model [json]
  (let [obj (.parse js/JSON json)]
    (js->clj obj :keywordize-keys true)))

(defn non-sanitized-div [content]
  (dom/div {:dangerouslySetInnerHTML #js {:__html content}}))

(defn find-first [f coll]
  (first (filter f coll)))
(ns editor.helpers.utils)

(defn model->json [model]
  (.stringify js/JSON (clj->js model) nil 2))

(defn json->model [json]
  (let [obj (.parse js/JSON json)]
    (js->clj obj :keywordize-keys true)))
Remove unused utility functions in editor
Remove unused utility functions in editor

AlexeyMK/faceboard,AlexeyMK/faceboard