我使用TYPO3新闻相关链接嵌入Youtube视频。
在流体中我使用了这段代码:
f:format.htmlspecialchars()} src =“{relatedLink.uri}”width =“480”>
结果是:<iframe allowfullscreen="" frameborder="0" height="270" title="Test video title src=" https:="" www.youtube.com="" embed="" 0ofotivopuo?ecver="1"" width="480"></iframe>
你可以看到src有一个没有斜杠的链接。 当我在
标签中调试相同的变量{relatedLink.uri}时,我会得到正确的网址:https://www.youtube.com/embed/0oFotIvOpUo?ecver=1
任何人都可以知道如何修复它吗?
答案 0 :(得分:1)
title="{relatedLink.title -> f:format.htmlspecialchars()}
之后缺少的引用可能是您遇到问题的原因。
修正版:
<iframe allowfullscreen="" frameborder="0" height="270" title="{relatedLink.title -> f:format.htmlspecialchars()}" src="{relatedLink.uri}" width="480"></iframe>
&#13;