Closed (fixed)
Project:
Slick Carousel
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2023 at 10:54 UTC
Updated:
10 Oct 2023 at 10:36 UTC
Jump to comment: Most recent
Comments
Comment #3
jurgenhaasComment #4
gausarts commentedThank you.
Mind providing before and after with HTML markups for docs purposes?
Honestly, I never thought string translation would output any HTML :)
If HTML were added by Twig purposedly or by design, I think it was a bad move, and would cause many troubles anywhere else. The fix should be upstream, not at module level, IMHO.
However, I am fine to include your fix.
It was just an unfortunate HTML addition what I was concerned about.
Almost similar, just an FYI, relevant striptags were done upstream to fix the same translation issue:
#3075838: Configuration translation disallowed HTML
Comment #5
jurgenhaasHere is the HTML before the fix:
And that's the HTML after the fix:
TBH, not sure if this can even be fixed upstream because the t-function, which is used here, returns TranslatableMarkup. And outside of an HTML attribute, that's probably exactly what you want. So stripping tags upstream would break other stuff.
Comment #6
gausarts commentedGot it, thanks.
Please allow delay to get back to it.
Comment #8
gausarts commentedCommitted. Thank you for contribution and patience.