【发布时间】:2017-11-07 14:16:10
【问题描述】:
我正在尝试在具有白色主题的博客上获取一些 Spotify 播放列表。
不知道为什么 '&theme=white' 的 & 符号会被编码。
我尝试在formatting.php 中评论这些行
//$curl = preg_replace('/&([^#])(?![a-zA-Z1-4]{1,8};)/', '&$1', $curl);
和
//$url = str_replace( '&', '&', $url );
但它仍然被编码...... 我正在使用带有 WPBakery 和 Visual composer 的 Bridge 主题。 那些家伙可能在搞乱编码吗?
这是 iframe 代码:
<iframe src="https://open.spotify.com/embed/artist/2hbw7tsQv6Ejqc8kBDoFIK&theme=white" width="300" height="380" frameborder="0"></iframe>
【问题讨论】:
标签: wordpress iframe spotify playlist ampersand