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.
Until #1821178: Performance tune text_field_load() gets put into core, I'd suggest we do something locally. I noticed something strange with really short entries in a node's 'value'. So short that there is no 'summary'. It still passed the text value of the body to htmlpurifer. This is unnecessary, since the text is an empty string. I'd like to suggest we exit _htmlpurifier_process_text early.
Comment | File | Size | Author |
---|---|---|---|
#1 | htmlpurifier-filter_empty_text-1821186.patch | 557 bytes | heddn |
Comments
Comment #1
heddnComment #2
ezyang CreditAttribution: ezyang commentedYou should do an explicit comparison against the empty string.
Comment #3
heddnDone and committed