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.
Problem/Motivation
FAQField module has a function that striptags the question string. If our string is inside , it will return empty.
Steps to reproduce
Create a FAQField element with question "". It will return empty.
Proposed resolution
Remove that sanitization because the field question is not a formatted field like answer field. The string should shows as it is (just trimming).
Comment | File | Size | Author |
---|---|---|---|
#3 | faqfield-unnecessary-sanitization-3317657-3.patch | 4.35 KB | tobas1996 |
Comments
Comment #2
tobas1996 CreditAttribution: tobas1996 commentedComment #3
tobas1996 CreditAttribution: tobas1996 commentedIm attaching a patch that applies the proposed resolution.
Comment #4
tobas1996 CreditAttribution: tobas1996 at Hiberus commented