mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
Adding sxml->xml utility.
This commit is contained in:
parent
ff15d3b850
commit
75dda8c29f
2 changed files with 5 additions and 1 deletions
|
@ -101,6 +101,10 @@
|
|||
((null? sxml))
|
||||
(else (html-display-escaped-string sxml out))))))
|
||||
|
||||
(define (sxml->xml sxml)
|
||||
(call-with-output-string
|
||||
(lambda (out) (sxml-display-as-html sxml out))))
|
||||
|
||||
;; utility to render sxml as simple text, stripping all tags
|
||||
(define (sxml-strip sxml)
|
||||
(call-with-output-string
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
(define-library (chibi sxml)
|
||||
(export sxml-display-as-html sxml-display-as-text sxml-strip)
|
||||
(export sxml->xml sxml-display-as-html sxml-display-as-text sxml-strip)
|
||||
(import (scheme base) (scheme write))
|
||||
(include "sxml.scm"))
|
||||
|
|
Loading…
Add table
Reference in a new issue