-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Because
| (λ (out) |
current-unescaped-tags is completely ignored or must be set at a much more global level, which is undesirable.
Example:
(define (start req)
(parameterize ([current-unescaped-tags html-unescaped-tags])
(response/xexpr
`(html (head (script "let x = 1 < 2;"))))))
When run, the above will fail because it will convert the < to < when that isn't the intention. I'd recommend changing the output function to first capture - and then reuse - the value:
(let ([unescaped-tags (current-unescaped-tags)])
(λ (out)
(parameterize ([current-unescaped-tags unescaped-tags])
(write-bytes preamble out)
(write-xexpr xexpr out))))
But there may be something a bit lower level that could work as well.
Metadata
Metadata
Assignees
Labels
No labels