2
Hello, I have a website with posting system and the problem is this: the user can put a youtube iframe for example in any resolution :
<iframe width="560" height="315" src="https://www.youtube.com/embed/CKjPutIlBCA" frameborder="0" allowfullscreen=""></iframe>
I want to put a width and height limit, the problem is that the user sends the code and the system interprets the way he writes, wanted the system to detect the iframe and not let the user post, or else release the iframe and resize automatically, help me I don’t know how I do it.
Thanks, also managed to settle with FILTER_SANITIZE_FULL_SPECIAL_CHARS
– Leonardo Pliskieviski
But FILTER_SANITIZE_FULL_SPECIAL_CHARS only converts html codes into htmlentities. This is totally different from extracting the URL.
– Daniel Omine