add escape string to place-text-inside-*

This commit is contained in:
David Botton 2022-08-30 00:39:07 -04:00
parent d71c8f6011
commit 8f163a37c7

View file

@ -243,7 +243,7 @@ after attachment is changed to one unique to this session."))
(:documentation "Places text inside top of CLOG-OBJ in DOM")) (:documentation "Places text inside top of CLOG-OBJ in DOM"))
(defmethod place-text-inside-top-of ((obj clog-obj) text) (defmethod place-text-inside-top-of ((obj clog-obj) text)
(jquery-execute obj (format nil "prepend(document.createTextNode('~A'))" text)) (jquery-execute obj (format nil "prepend(document.createTextNode('~A'))" (escape-string text)))
text) text)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -254,7 +254,7 @@ after attachment is changed to one unique to this session."))
(:documentation "Places text inside bottom of CLOG-OBJ in DOM")) (:documentation "Places text inside bottom of CLOG-OBJ in DOM"))
(defmethod place-text-inside-bottom-of ((obj clog-obj) text) (defmethod place-text-inside-bottom-of ((obj clog-obj) text)
(jquery-execute obj (format nil "append(document.createTextNode('~A'))" text)) (jquery-execute obj (format nil "append(document.createTextNode('~A'))" (escape-string text)))
text) text)