Convert a string into HTML (simple version, no tab support).
Function:
(defun html-encode-string-basic (x) (declare (xargs :guard (stringp x))) (let ((acl2::__function__ 'html-encode-string-basic)) (declare (ignorable acl2::__function__)) (rchars-to-string (html-encode-string-basic-aux x 0 (length x) nil))))
Theorem:
(defthm stringp-of-html-encode-string-basic (b* ((html-string (html-encode-string-basic x))) (stringp html-string)) :rule-classes :type-prescription)
Theorem:
(defthm html-encode-string-basic-of-str-fix-x (equal (html-encode-string-basic (str-fix x)) (html-encode-string-basic x)))
Theorem:
(defthm html-encode-string-basic-streqv-congruence-on-x (implies (streqv x x-equiv) (equal (html-encode-string-basic x) (html-encode-string-basic x-equiv))) :rule-classes :congruence)