Active
Project:
Image URL Formatter
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2016 at 08:38 UTC
Updated:
13 Aug 2020 at 11:45 UTC
Jump to comment: Most recent
Comments
Comment #2
krlucas commentedThis is an issue in D7 as well since theme_debug was backported and not something I think this module can fix.
Have you tried using the striptags to filter your twig template?
Comment #3
kccmcck commentedI have the same problem as @darol100 — and unfortunately the striptags filter does not work for me. In fact, when applied, the field does not print whatsoever. The striptags filter does work on other variables, however.
While disabling twig debugging resolves the issue, it is annoying for the theme to "break" during development.
Any other ideas?
Comment #4
kccmcck commentedThis is what ended up working for me in my html.twig file:
Comment #5
maxplus commentedthanks @ kccmcck
For me the same solution worked during development:
Inside my views-view-fields--slider.html.twig im using your solution successful with twig debug enabled:
Comment #6
riannuzzi commentedWhen using Image URL Formatter as the source and I have theme debug on, the printing of the img breaks.
Steps to reproduce
<img src="{{ field_image }}" class="img-responsive">Comment #7
avpaderno