Applying filter to content and headings