Reaction of polyphenols with formaldehyde