Matching content in an HTML file

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Matching content in an HTML file Sun Sep 15, 2019 9:37 am • by Dave61
I want to pull some information out of a saved HTML file, starting with the page's title.

Obviously this is surrounded by <title> and </title> tags, so I tried a condition "Contents contain match" and the [anything] token. But it doesn't work.
I have tried this with the file in plain text, HTML, and PDF.

Am I right in thinking that Hazel ignores anything in < > on the grounds that it isn't content?
Posts: 103
Joined: Tue Jul 10, 2012 4:56 pm

Re: Matching content in an HTML file Mon Sep 16, 2019 10:06 am • by Mr_Noodle
That is correct. Markup is not considered the content so you can't really use that to match in this case. If you preview the file and click on the badge next to the "Contents" condition, you can view the contents as Hazel sees them.
Site Admin
Posts: 8697
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Return to Support