# Off sick because of one thing but went to the doctor for another. Finally offered physio for an injury from four years ago!
# In reply to: ...
Got the method of parsing a page title using DOMDocument
working. Simplified things a bit from the example shared by Eli and had to use loadHTMLFile()
rather than loadHTML()
- seems okay though.
Will do some more testing and, if all looks good, update the 'Likes and Replies' plugin.
@colinwalker, makes me realize I ought to have included some annotations in that code explaining what I was trying to do with what ?
Right now I'm only displaying titles for liked content, but I am collecting titles for responses, too. From your site, I'm getting a 500 error as a title, though. Here is the raw
json
of my last post as an example. I'll do some digging to see if it is something I'm doing wrong on my end. Also noticed that the title seems to include an embedded<p>
tag when replying to micro.blog posts.