Patch with fix attached.
You can simply get the from using the context
.
I adjusted the fix by also looking for the form if it's exposed as a block and it's not within the views container.
Not sure though if using the action
as a selector is the best way to do it. But it's working for me for both cases(block or not)
Please ignore #9 and use this one instead. My bad.
Added the fix for the apos as well.. tested it with different variations and seems to be working well.
Note you need to disable/enable the filter to get the new attribute in the allowed HTML tags if you have the "Limit allowed HTML tags and correct faulty HTML" filter enabled as well.
Added also the check if the value isn't set(from
https://www.drupal.org/node/3381366 →
)
Updating the patch to work with your project's root composer.