I ran into code about a month ago (unfortunately i couldn’t find the link to post it here) that had a standard youtube embed html code followed by
</embed>
</object>
</video>
the problem is in that code there were no opening tags. I figured the person knew what he was doing because it all worked out fine but now my curiosity got the better of me. How can there be closing tags without opening tags? If there can’t be any why isn’t the client crashing? The above was implemented using RoR 3. Thanks in advance.
He might have had a javascript with encrypted text, where he encrypted the opening tags.
If you find the link, I’ll tell you in details.
There might been a javascript like this:
There might be a similar code on RoR3.
EDIT:
Example;
outputs:
This is done with php, thus it will make it appear clean html in the end.
If you do this with Javascript, they won’t see , but they will see
Check out the java escape function.