Re: The problem with "esc"
Kenneth Yan <yanxiaoguang <at> gmail.com>
2012-08-01 00:56:40 GMT
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 <at> gmail.com> wrote:
Kenneth Yan <
yanxiaoguang <at> 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 <at> common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-who-devel
<div>
<p>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.<br><br clear="all">Best,<br>Kenneth<br><br><br></p>
<div class="gmail_quote">On Tue, Jul 31, 2012 at 10:05 AM, Stas Boukarev <span dir="ltr"><<a href="mailto:stassats <at> gmail.com" target="_blank">stassats <at> gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote">
<div class="HOEnZb"><div class="h5">Kenneth Yan <<a href="mailto:yanxiaoguang <at> gmail.com">yanxiaoguang <at> gmail.com</a>> writes:<br><br>
> Dear all,<br>
><br>
> Please pay attention to the issue below.<br>
><br>
> (with-html-output-to-string (*standard-output* nil :prologue nil)<br>
> (:input :type "text" :name (escape-string "你好") :readonly "readonly"<br>
> :value (esc "你好")))<br>
><br>
> "<input type=\"text\" name=\"&#20320;&#22909;\"<br>
> readonly=\"readonly\"&#20320;&#22909; value=\"&#20320;&#22909;\">"<br>
</div></div>Try escape-string instead.<br><span class="HOEnZb"><br>
--<br>
With best regards, Stas.<br><br>
_______________________________________________<br>
cl-who-devel site list<br><a href="mailto:cl-who-devel <at> common-lisp.net">cl-who-devel <at> common-lisp.net</a><br><a href="http://common-lisp.net/mailman/listinfo/cl-who-devel" target="_blank">http://common-lisp.net/mailman/listinfo/cl-who-devel</a></span>
</blockquote>
</div>
<br>
</div>