mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-15 15:00:24 -08:00
commit
cafe9ba527
1 changed files with 2 additions and 2 deletions
|
|
@ -610,8 +610,8 @@ the contents sent to the brower."
|
|||
(defun escape-string (str)
|
||||
"Escape STR for sending to browser script."
|
||||
(let ((res))
|
||||
(setf res (ppcre:regex-replace-all "\\x5C" res "\\x5C")) ; \
|
||||
(setf res (ppcre:regex-replace-all "\\x22" str "\\x22")) ; "
|
||||
(setf res (ppcre:regex-replace-all "\\x5C" str "\\x5C")) ; \
|
||||
(setf res (ppcre:regex-replace-all "\\x22" res "\\x22")) ; "
|
||||
(setf res (ppcre:regex-replace-all "\\x27" res "\\x27")) ; '
|
||||
(setf res (ppcre:regex-replace-all "\\x0A" res "\\x0A")) ; \n
|
||||
(setf res (ppcre:regex-replace-all "\\x0D" res "\\x0D")) ; \r
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue