CrossClj

trust trust.escape 1.1.0-beta

SourceDocs



RECENT
    VARS
    escape-html
    escape-it
    escape-json
    escaper
    html-escape
    json-escape
    unescape-html
    unescape-json
    xss
    xss-json

    \\\"}) \n e.g. (escape-it escape-html {:name \\\"\\\"\n :id \\\"some-token\\\"}\n {:id identity})\n\n In the example above the identity function will just produce the actual value\n instead of escaping. You can have any escape-function you want to perform on\n that particular value.\"\n \n [escape-fn m & [opts]]\n (\"ç@areduceç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_reduce\" \"ç@aconjç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_conj\" {} (\"ç@aforç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_for\" [[k v] m\n :let [v (if (\"ç@acoll?ç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_coll%3F\" v)\n (\"ç@pescaperç@/ns/trust/1.1.0-beta/trust.escape.html#_escaper\" v (\"ç@aorç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_or\" (k opts) escape-fn) opts)\n ((\"ç@aorç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_or\" (k opts) escape-fn) v))]]\n [k v])))\n\n\"ç@_html-escape\"(\"ç@adefnç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_defn\" \"ç@dhtml-escapeç@/fun/trust.escape/html-escape.html\"\n \"Escape function using html as default escape.\n Takes a map and gives the option to skip or use another\n escape function\"\n [m & [opts]]\n (\"ç@pescape-itç@/ns/trust/1.1.0-beta/trust.escape.html#_escape-it\" \"ç@pescape-htmlç@/ns/trust/1.1.0-beta/trust.escape.html#_escape-html\" m opts))\n\n\"ç@_json-escape\"(\"ç@adefnç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_defn\" \"ç@djson-escapeç@/fun/trust.escape/json-escape.html\"\n \"Escape function using json as default escape.\n Takes a map and gives the option to skip or use another\n escape function\"\n [m & [opts]]\n (\"ç@pescape-itç@/ns/trust/1.1.0-beta/trust.escape.html#_escape-it\" \"ç@pescape-jsonç@/ns/trust/1.1.0-beta/trust.escape.html#_escape-json\" m opts))\n\n\"ç@_escaper\"(\"ç@adefnç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_defn\" \"ç@descaperç@/fun/trust.escape/escaper.html\"\n \"Used to determine value and correct operation\"\n [v escape-fn & [opts]]\n (\"ç@acondç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_cond\"\n (\"ç@avector?ç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_vector%3F\" v) (\"ç@amapvç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_mapv\" escape-fn v)\n (\"ç@aset?ç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_set%3F\" v) (\"ç@asetç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_set\" (\"ç@amapç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_map\" escape-fn v))\n (\"ç@amap?ç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_map%3F\" v) (\"ç@pescape-itç@/ns/trust/1.1.0-beta/trust.escape.html#_escape-it\" escape-fn v opts)\n :else (escape-fn v)))\n\n\"ç@_xss\"(\"ç@adefnç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_defn\" \"ç@dxssç@/fun/trust.escape/xss.html\"\n \"Used to escape HTML arguments before applying to function\"\n [fn & args]\n (\"ç@aapplyç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_apply\" fn (\"ç@amapç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_map\" #(\"ç@pescaperç@/ns/trust/1.1.0-beta/trust.escape.html#_escaper\" % \"ç@pescape-htmlç@/ns/trust/1.1.0-beta/trust.escape.html#_escape-html\") args)))\n\n\"ç@_xss-json\"(\"ç@adefnç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_defn\" \"ç@dxss-jsonç@/fun/trust.escape/xss-json.html\"\n \"Used to escape JSON arguments before applying to function\"\n [fn & args]\n (\"ç@aapplyç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_apply\" fn (\"ç@amapç@/ns/org.clojure/clojure/1.10.0-alpha6/clojure.core.html#_map\" #(\"ç@pescaperç@/ns/trust/1.1.0-beta/trust.escape.html#_escaper\" % \"ç@pescape-jsonç@/ns/trust/1.1.0-beta/trust.escape.html#_escape-json\") args)))\n");