- Issue created by @RandalV
- Merge request !36Issue #3491318 by randalv: The xls encoder doesn't strip tags when no setting is provided → (Open) created by RandalV
- 🇧🇪Belgium RandalV
I've created an MR that adds default values. This preserves the behavior pre-#3108301.
- 🇫🇷France mably
Hi @randalv, it looks like the fix has already been pushed to 2.x branch:
https://git.drupalcode.org/project/xls_serialization/-/commit/70b3f4a53b...
Do you need to have it backported to the 8.x-1.x branch?
- 🇧🇪Belgium RandalV
Hi @mably, apologies, I hadn't seen that!
Although if I'm not mistaken that doesn't entirely fix the issue I was experiencing, because the encoder will still not strip tags or trim strings unless a setting is specifically provided (whereas before it would strip/trim by default).
With the fix currently in the 2.x branch, the warning message is gone, but if the encoder is used in Views Data Export it'll still let any and all HTML through (without the possibility of configuring it otherwise 😞).
It would be easily solved if encoders allowed configuration forms, but since (I think?) they don't, would it be preferred to keep the old functionality intact?
- 🇫🇷France mably
The problem lays somewhere else then, because the
stripTags
andtrimValues
class properties are TRUE by default... - 🇧🇪Belgium RandalV
Ah.. my bad, you're absolutely right. I overlooked the default value of the class property.
I'm not sure if a backport to 1.x is still necessary, I suppose it depends on how long 8.x-1.x will remain supported? If it will, then maybe it would be good to have that fix there too 😇
- 🇫🇷France mably
I backported the 2.0.x fix to 8.x-1.x dev branch for now.
And let's say this issue is fixed ;)
Automatically closed - issue fixed for 2 weeks with no activity.