I want to try figure out how to get the
<title>A common title</title>
<meta name="keywords" content="Keywords blabla" />
<meta name="description" content="This is the description" />
Even though if it's arranged in any order, I've heard of the PHP Simple HTML DOM Parser but I don't really want to use it. Is it possible for a solution except using the PHP Simple HTML DOM Parser.
preg_match
will not be able to do it if it's invalid HTML?
Can cURL do something like this with preg_match?
Facebook does something like this but it's properly used by using:
<meta property="og:description" content="Description blabla" />
I want something like this so that it is possible when someone posts a link, it should retrieve the title and the meta tags. If there are no meta tags, then it it ignored or the user can set it themselves (but I'll do that later on myself).