开发者

Not rendered recaptcha in rails 3

Use of ra开发者_如何学Goils 3 recaptcha. In view _form.html.erb insert <%= recaptcha_tags %> But when viewing the page in the browser receives

&lt;script type=&quot;text/javascript&quot; src=&quot;http://api.recaptcha.net/challenge?k=**&amp;error=expression&quot;&gt;&lt;/script&gt;

As I understand it is not rendered in the browser. Why '<' instead of < ?


Try <%= raw recaptcha_tags %>. Or use html_safe inside helper. Explanation here: http://asciicasts.com/episodes/204-xss-protection-in-rails-3

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜