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'

CommentFileSizeAuthor
devel.module_3.patch671 bytesJohnAlbin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Fixed

thanks. about to commit.

Anonymous’s picture

Status: Fixed » Closed (fixed)