Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since #853880: Views: Rewrite field, strips some HTML tags (SOLUTION/WORKAROUND FOUND FOR STYLE TAG) is locked I'm opening a new issue.
Problem: If I have a views_data_export XML display then it does not make sense to strip tags from the "rewrite results" content, because I want those tags in the XML output.
Solution: don't run filter_xss_admin() on the rewrite text because views editors are already trusted users with the "administer views" permission.
Although the Views maintainers don't seem to want to accept this I want to have my drush make patches in a public issue on drupal.org
Comment | File | Size | Author |
---|---|---|---|
#2 | views-no-alter-text-filter-2529948-2.patch | 781 bytes | klausi |
|
Comments
Comment #1
klausiPatch.
Comment #2
klausiRerolled for latest Views release.
Comment #3
vipul tulse CreditAttribution: vipul tulse commentedComment #4
MustangGB CreditAttribution: MustangGB commentedvipul tulse, why are you assigning so many issues to yourself?
If you're not actively working on a patch then there is no need, and this patch is already complete so there is nothing more to do.
You don't need to assign yourself if you only wish to review.
Comment #5
jvieille CreditAttribution: jvieille commentedThank you so much for giving the solution for this frustrating issue that was denied for ages by the Drupal Gurus.
This was really non-sense.
Comment #6
DamienMcKenna@jvieille: that attitude is not necessary - the overwhelming majority of people maintaining and contributing to Drupal do so on a volunteer basis, you don't need to get condescending that a bug hasn't been fixed fast enough for you.
This patch needs some reviews, can someone please provide that? Thank you.
Comment #7
danieldd CreditAttribution: danieldd commentedThank you for making this change.
I've deployed the patch and can confirm it works as intended - in my case being able to add style tags to views fields, to enable display of background images.
I hope this can be rolled into an official release soon.
Comment #8
DamienMcKennaThis is a small improvement, presuming the test coverage is still ok, I'm going to add it to 3.23.
Comment #10
DamienMcKennaCommitted.
Comment #12
BartNijs CreditAttribution: BartNijs commentedThis doesn't work for translated views. In a translated custom text field, the style attribute still gets stripped out.
Any workaround for this?
Comment #13
DamienMcKenna@Bartelli: Please open a new issue for that and we can work on it. Thanks.