mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
escape html \n and \r
This commit is contained in:
parent
26d120bdc5
commit
ae6cdb7580
1 changed files with 2 additions and 2 deletions
|
|
@ -152,8 +152,8 @@ and not for security purposes or html escapes."
|
||||||
(cond (html
|
(cond (html
|
||||||
(setf res (ppcre:regex-replace-all "\\x22" res """)) ; "
|
(setf res (ppcre:regex-replace-all "\\x22" res """)) ; "
|
||||||
(setf res (ppcre:regex-replace-all "\\x27" res "'")) ; '
|
(setf res (ppcre:regex-replace-all "\\x27" res "'")) ; '
|
||||||
(setf res (ppcre:regex-replace-all "\\x0A" res "")) ; \n
|
(setf res (ppcre:regex-replace-all "\\x0A" res "
")) ; \n
|
||||||
(setf res (ppcre:regex-replace-all "\\x0D" res ""))) ; \r
|
(setf res (ppcre:regex-replace-all "\\x0D" res "
"))) ; \r
|
||||||
(t
|
(t
|
||||||
(setf res (ppcre:regex-replace-all "\\x22" res "\\x22")) ; "
|
(setf res (ppcre:regex-replace-all "\\x22" res "\\x22")) ; "
|
||||||
(setf res (ppcre:regex-replace-all "\\x27" res "\\x27")) ; '
|
(setf res (ppcre:regex-replace-all "\\x27" res "\\x27")) ; '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue