I am using a PHP script to crawl data from HTML and struggling to parse the data within HTML <code>
tag. For instance, in the following code, I would like to parse the content such as name, location, position and company name.
<code id="content" style="display:none;">
<!--{"required content":{"name:"John Smith",
"location:"UK"}, "position:"Manager", "company:"IBM"}}-->
</code>
I would appreciate it if someone can point me in the right direction.