I'm learning about HTML parsing in PHP and I'm trying to use it to get the content in-between an opening and closing tag.
I've read the documentation and can't figure out how to do it.
I know how to get elements and get their attributes, but not what they contain.
How can I do that with Dom Document in PHP?
For example getting the contents inside the opening <title>
and closing </title>
?