Turn off template suggestion for specific fields I have the problem, that the theme / template suggestion comments destroy the html when they are outputted as values.

{% set img_uri = "fields.img.value"%}

{{ dpm(img_uri)
style="backround:url({{ createMyImagePathCustomTwigFunction(img_uri) }});"


Results in:

&lt;!-- THEME DEBUG --&gt;
&lt;!-- THEME HOOK: 'views_view_field' --&gt;
&lt;!-- BEGIN OUTPUT from 'core/themes/stable/templates/views/views-view-field.html.twig' --&gt;
public://img/person/joshua-ness-117255-unsplash_0.jpg 
&lt;!-- END OUTPUT from 'core/themes/stable/templates/views/views-view-field.html.twig' --&gt;


&lt;!-- END OUTPUT from 'core/themes/stable/templates/views/views-view-fields.html.twig' --&gt;


..as wrong uri.

I know that I could dive deeper into the rendered array to find other versions.

However:
To change production templates in general only for enabling a developing environment seems wrong to me.

Better would be a hook that would remove field tpl suggestions in general as I don't need them. 

I know I can write handler functions... that is what I do in the moment.

But cleaner would be to turn the suggestions off for views fields. How this can be done?
As it seems, that there is no solid alternative that works for field values I have written a Twig-Filter which returns the value via this php function:

public function removeHtmlComments($string) {

  $output = preg_replace(array('/&lt;!--(.|\s)*?--&gt;\s*/', '/\t+/', '/\n+/', '/[\r\n]/', '/[\n\r]/'), '', $string);

  return $output;
}