mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 06:39:17 +02:00
Merge branch 'master' of github.com:ashinn/chibi-scheme
This commit is contained in:
commit
abfa6a724e
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,7 @@
|
|||
(lambda (out) (html-display-escaped-string str out))))
|
||||
|
||||
;;> Render (valid, expanded) \var{sxml} as html.
|
||||
;;> \var{@raw} tag is considered safe text and not processed or escaped.
|
||||
(define (sxml-display-as-html sxml . o)
|
||||
(let ((out (if (pair? o) (car o) (current-output-port))))
|
||||
(let lp ((sxml sxml))
|
||||
|
@ -105,6 +106,7 @@
|
|||
(else (html-display-escaped-string sxml out))))))
|
||||
|
||||
;;> Render \var{sxml} as \var{xml}.
|
||||
;;> \var{@raw} tag is considered safe text and not processed or escaped.
|
||||
(define (sxml->xml sxml)
|
||||
(call-with-output-string
|
||||
(lambda (out) (sxml-display-as-html sxml out))))
|
||||
|
|
Loading…
Add table
Reference in a new issue