Iam new to drupal 8 and I was wondering if one can alter the html output once before it gets injected into the twig template file. In my case I would like to remove some classes and add some tags to the search. Could anyone provide some guids or documentation on how to do such things? That would be very helpful, just found some drupal 7 things on it, but they seem to be outdated.
Thanks in advance!