Skip to content

Commit

Permalink
- mode careful escaping of characters
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Jun 13, 2024
1 parent 0169590 commit ded486a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. This change

## [2-beta11] - unreleased
- added support for handling any sequential of texts (not just vector) in `kind/code`, `kind/md`, `kind/html`

- mode careful escaping of characters

## [2-beta10] - 2024-05-25
- added classes to elements that have styling applied to facilitate custom styles (#102)
Expand Down
7 changes: 6 additions & 1 deletion src/scicloj/clay/v2/item.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
(defn escape [string]
(-> string
(string/escape
{\< "&lt;" \> "&gt;"})))
{\< "&lt;"
\> "&gt;"
\& "&amp;"
\" "&quot;"
\' "&apos;"})))


(defn clojure-code-item [{:keys [tag hiccup-element md-class]}]
(fn [string-or-strings]
Expand Down

0 comments on commit ded486a

Please sign in to comment.