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.
dprint_r() prints the contents of the variables directly to screen; but if the contents include html tags, you won't be able to see the contents and it can mess up your template's html.
This same type of problem looks to have been fixed in devel_show_object(), but not in dprint_r().
This patch applies check_plain() before printing. It also display the variable like this: 'name => value' instead of this: ' name value'
Comment | File | Size | Author |
---|---|---|---|
devel.module_3.patch | 671 bytes | JohnAlbin | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedthanks. about to commit.
Comment #2
(not verified) CreditAttribution: commented