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.
When building the views blocks the title is built with the t() function and the @ replacement method is used which already escapes the title. If you use quotes in your view name this results in doubly escaped quotes in the block admin screen.
Comment | File | Size | Author |
---|---|---|---|
views-escape-block-titles.patch | 902 bytes | Jax | |
Comments
Comment #1
Jax CreditAttribution: Jax commentedFixed title.
Comment #2
damiankloip CreditAttribution: damiankloip commentedTested, and works for me. I guess the title is being escaped by the block module too?
Comment #3
dawehnerThe problem here is that this changes strings, i'm not sure how to handle that.
Comment #4
damiankloip CreditAttribution: damiankloip commented@dawehner: So this shouldn't be RTBC now?
Comment #5
dawehnerIs there a reason to change display_title here as well? This part doesn't seem to be escaped before ... but this seems to be the case for get_human_name as well, i'm confused.
Comment #6
Jax CreditAttribution: Jax commentedWell, everything is escaped again by the block admin page so nothing should be escaped here.
Comment #7
dawehnerAaah i got it now, sorry. Thanks for your patch, so committed to 7.x-3.x