[cl-who-devel] Looks like a bug to me?
Richard Newman
rnewman at twinql.com
Mon Sep 29 03:47:07 UTC 2008
> What if I need to use format to generate the value, which is where
> this use case originally came from?
>
> (let ((userid 46))
> (with-html-output (*standard-output*)
> (:a :id (fmt "user-~A" userid))))
(:a :id (format nil "user-~A" userid))
Attributes can contain any Lisp expression.
If you want to make sure the user ID is escaped:
(:a :id (escape-string-minimal-plus-quotes
(format nil "user-~A" userid)))
More information about the Cl-who-devel
mailing list