Make url-rul *preorder*.
This removes a bug that escaped the HTML string twice (e.g. '<' or '&').
This commit is contained in:
parent
c48f952cc5
commit
97c0da8c71
|
@ -1,11 +1,11 @@
|
||||||
(define url-rule
|
(define url-rule
|
||||||
(cons 'url
|
`(url *preorder*
|
||||||
(lambda (tag uri . maybe-text)
|
. ,(lambda (tag uri . maybe-text)
|
||||||
(surflet-sxml->low-level-sxml
|
(surflet-sxml->low-level-sxml
|
||||||
`(a (@ (href ,uri))
|
`(a (@ (href ,uri))
|
||||||
,(if (null? maybe-text)
|
,(if (null? maybe-text)
|
||||||
uri
|
uri
|
||||||
maybe-text))))))
|
maybe-text))))))
|
||||||
|
|
||||||
(define plain-html-rule
|
(define plain-html-rule
|
||||||
`(plain-html
|
`(plain-html
|
||||||
|
|
Loading…
Reference in New Issue