Merge pull request #585 from ekaitz-zarraga/safe-string

[WIP] Add option to ignore escaping
This commit is contained in:
Alex Shinn 2019-10-24 21:00:29 +08:00 committed by GitHub
commit 4ad228a0f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,9 @@
(display (html-tag->string tag (cdar rest)) out)
(for-each lp (cdr rest))
(display "</" out) (display tag out) (display ">" out))
((and (eq? '@raw tag)
(string? (car rest)))
(display (car rest) out))
(else
(display (html-tag->string tag '()) out)
(for-each lp rest)