[cl-who-devel] The problem with "esc"

Dear all, Please pay attention to the issue below. (with-html-output-to-string (*standard-output* nil :prologue nil) (:input :type "text" :name (escape-string "你好") :readonly "readonly" :value (esc "你好"))) "<input type=\"text\" name=\"你好\" readonly=\"readonly\"你好 value=\"你好\">" Best, Kenneth

Kenneth Yan <yanxiaoguang@gmail.com> writes:
Dear all,
Please pay attention to the issue below.
(with-html-output-to-string (*standard-output* nil :prologue nil) (:input :type "text" :name (escape-string "你好") :readonly "readonly" :value (esc "你好")))
"<input type=\"text\" name=\"你好\" readonly=\"readonly\"你好 value=\"你好\">" Try escape-string instead.
-- With best regards, Stas.

Of course, escape-string always works. But this is not my point. Since "esc" is the shortcut of "escape-string", hope "esc" will be better. Best, Kenneth On Tue, Jul 31, 2012 at 10:05 AM, Stas Boukarev <stassats@gmail.com> wrote:
Kenneth Yan <yanxiaoguang@gmail.com> writes:
Dear all,
Please pay attention to the issue below.
(with-html-output-to-string (*standard-output* nil :prologue nil) (:input :type "text" :name (escape-string "你好") :readonly "readonly" :value (esc "你好")))
"<input type=\"text\" name=\"你好\" readonly=\"readonly\"你好 value=\"你好\">" Try escape-string instead.
-- With best regards, Stas.
_______________________________________________ cl-who-devel site list cl-who-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-who-devel
participants (2)
-
Kenneth Yan
-
Stas Boukarev