我想在我的Blogger网站上添加新的脸书"赞"按钮.
我必须将URL传递给中的博客帖子iframe src.
我可以从Blogger帖子中获取URL,<data:post.url/>但我不能将其放在src字符串中,因为Blogger的模板系统很奇怪.
我想做这个:
<iframe allowTransparency='true' frameborder='0' scrolling='no'
src='http://www.facebook.com/plugins/like.php?href=<data:post.url/>&layout=standard&show-faces=true&width=450&action=like&colorscheme=light'
style='border:none; overflow:hidden; width:450px; height:px'/>
Run Code Online (Sandbox Code Playgroud)
但Blogger抱怨道:
您的模板无法解析,因为它的格式不正确.请确保正确关闭所有XML元素.
XML错误消息:与元素类型"null"关联的属性"src"的值不得包含"<"字符."
有没有人有这个工作呢?