2008/7/7 Edi Weitz edi@agharta.de:
(defun cleanup (line) "Replace < and & with entities" (msg (cl-ppcre:regex-replace-all "&" line "&")) (msg (cl-ppcre:regex-replace-all "<" line "<")) )
You're applying REGEX-REPLACE-ALL to LINE in both cases. You probably want to apply it to the result of the first invocation in the second case instead.
Oh dear. Sorry for wasting bandwidth.
Thanks Edi.
regards