Option to exclude comments from search

Use case or problem

I have commented material in my templates to remind myself to fill notes out in a certain way.

At the moment those comments are included in search results. I think it would be useful to have the option to exclude such meta-stuff so results focus on actual note content.

Proposed solution

Add a filter to search ignores material enclosed in comment tags ( <!-- or %% etc.)

Current workaround (optional)

I don’t have a workaround for this at the moment.

Related feature requests (optional)

Can’t find any.