hsx/tests/escaper.lisp

17 lines
428 B
Common Lisp
Raw Permalink Normal View History

2024-05-31 09:39:25 +00:00
(defpackage #:hsx-test/escaper
(:use #:cl
#:fiveam
#:hsx/escaper))
(in-package #:hsx-test/escaper)
(def-suite escaper-test)
(in-suite escaper-test)
(test escape-html-attribute
(is (equal ""foo""
(escape-html-attribute "\"foo\""))))
(test escape-html-text-content
(is (string= "&<>"'/`="
2024-06-02 05:23:13 +00:00
(escape-html-text-content "&<>\"'/`="))))