/usr/lib/htmlify-char.scm is in scheme9 2013.11.26-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ; Scheme 9 from Empty Space, Function Library
; By Nils M Holm, 2010
; Placed in the Public Domain
;
; (htmlify-char char) ==> string
; (htmlify-string string) ==> string
;
; HTMLIFY-CHAR converts a char to a string that is save for
; inclusion in an HTML document. HTMLIFY-STRING does the
; same for a string.
;
; Example: (htmlify-char #\<) ==> "<"
; (htmlify-string "<&>") ==> "<&>"
(define (htmlify-char c)
(cond ((char=? c #\<) "<")
((char=? c #\>) ">")
((char=? c #\&) "&")
(else (string c))))
(define (htmlify-string s)
(apply string-append
(map htmlify-char (string->list s))))
|