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 commentedFixed title.
Comment #2
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 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 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