              (om/set-state! owner :selected-entries (conj selected-entries (:id topiq))))))))
     (set-attr "href" (str "#comments-" (:id topiq))))
    [:.topiq-text] (html-content
-                   (loop [text (:title topiq)
+                   (loop [text (clojure.string/replace (:title topiq) #"\'" "&rsquo;")
                           hashtags (map name (:hashtags topiq))]
                         (if (empty? hashtags)
                           text

  [comment]
  {[:.comment-text] (html-content
                     (md/mdToHtml
                      (loop [text (:content comment)
                             hashtags (map name (:hashtags comment))]
                        (if (empty? hashtags)
                          text

            (js/alert e))))))


(deftemplate topiqs "templates/topiqs.html"
  [app owner]
  {[:.list-group] (content (map #(topiq % app owner) (get-topiqs app)))
