Created
December 5, 2016 05:55
-
-
Save 173210/3a38167269489032a5f2e93ca4362ab6 to your computer and use it in GitHub Desktop.
Fuck OGP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html prefix="og: http://ogp.me/ns#"> | |
<head> | |
<title>Should I have a title?</title> | |
<meta id="title" property="og:title" content="<?php echo htmlspecialchars($_SERVER["QUERY_STRING"]); ?>"> | |
<meta property="og:type" content="website"> | |
<meta property="og:url" content="https://kagucho.net/"> | |
<meta property="og:image" content="https://kagucho.net/owncloud/core/img/favicon-touch.png"> | |
</head> | |
<body> | |
<p>Or body?</p> | |
<script> | |
document.getElementById("title").setAttribute("content", "DOM"); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment