                                                                                                                (when-not (blank? (str (:revoked b)))
                                                                                                                  [:phrase
                                                                                                                   [:chunk.chunk (str (t :badge/Revoked ul) ": ")] [:chunk (str (if (true? (:revoked b)) (t :core/Yes ul) (t :core/No ul)) "  ")]])
-                                                                                                               (when-not (blank? (:visibility b) )
+                                                                                                               (when-not (blank? (str (:visibility b)))
                                                                                                                  [:phrase
                                                                                                                   [:chunk.chunk (str (t :badge/Badgevisibility ul) ": ")] [:chunk (t (keyword (str "core/" (capitalize (:visibility b)))) ul)]"\n"])
 
-                                                                                                               (when-not (blank? (:obf_url b))
+                                                                                                               (when-not (blank? (str (:obf_url b)))
                                                                                                                  [:phrase
                                                                                                                   [:chunk.chunk (str (t :badge/OBFurl ul) ": ")] [:chunk (:obf_url b)]"\n"])
-                                                                                                               (when-not (blank? (:assertion_url more-badge-info))
+                                                                                                               (when-not (blank? (str (:assertion_url more-badge-info)))
                                                                                                                  [:phrase
                                                                                                                   [:chunk.chunk (str (t :badge/Assertionurl ul) ": ")] [:chunk.link (str (:assertion_url more-badge-info))]"\n"])
                                                                                                                (when-not (blank? (str (:assertion_json more-badge-info)))

                                                                                                               (when-not (blank? (str (:criteria_content %)))
                                                                                                                 [:paragraph
                                                                                                                  [:chunk.chunk (str (t :badge/Criteria ul) ": ")][:paragraph (strip-html-tags (:criteria_content %))]"\n"])
                                                                                                               (when-not (blank? (:status b))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :user/Status ul) ": ")][:chunk  (capitalize (str (t (keyword (str "social/"(:status b))) ul) "  "))]])
                                                                                                               (when-not (blank? (str (:verified_by_obf b)))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Verifiedbyobf ul) ": ")][:chunk (str (if (true? (:verified_by_obf b)) (t :core/Yes ul) (t :core/No ul)) "  ")]])
                                                                                                               (when-not (blank? (:issued_by_obf b))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Issuedbyobf ul) ": ")][:chunk (str (if (true? (:issued_by_obf b)) (t :core/Yes ul) (t :core/No ul)))]"\n"])
                                                                                                               (when (not-empty (:tags b))

                                                                                                               (when-not (blank? (str (:rating more-badge-info)))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Badgerating ul) ": ") ] [:chunk (str (:rating more-badge-info) "  ")]])
                                                                                                               (when-not (blank? (str (:evidence_url more-badge-info)))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Evidenceurl ul) ": ")] [:chunk (str (:evidence_url more-badge-info) " ")]]"\n"
                                                                                                                 )
