Reputation: 593
I use TYPO3 news related link to embed a Youtube video.
In fluid I have use this code:
f:format.htmlspecialchars()} src="{relatedLink.uri}" width="480">
The result is: <iframe allowfullscreen="" frameborder="0" height="270" title="Test video title src=" https:="" www.youtube.com="" embed="" 0ofotivopuo?ecver="1"" width="480"></iframe>
You can see that src have a link with no slashes. When i debug the same variable {relatedLink.uri} in a
tag i get the right url like this : https://www.youtube.com/embed/0oFotIvOpUo?ecver=1Can anybody give an idea how to fix it ?
Upvotes: 0
Views: 711
Reputation: 111
The missing quote after title="{relatedLink.title -> f:format.htmlspecialchars()}
is probably the reason for your problem.
Fixed version:
<iframe allowfullscreen="" frameborder="0" height="270" title="{relatedLink.title -> f:format.htmlspecialchars()}" src="{relatedLink.uri}" width="480"></iframe>
Upvotes: 1