the following characters: &, ", ', <, >. come through looking as follows, respectively:
& " ' < > on the labels. Does anyone know where this transformation happening?

Comments

darrellduane’s picture

Here is how this bug report should look. I forgot to include the 'code' tags:


I'm trying to figure out how to print out the following characters:  &, ", ', <, >.  These characters come through looking as follows, respectively:
   &amp; &quot; &#039; &lt; &gt; 

I tried using chr() but it doesn't fix the problem. 
letapjar’s picture

I suspect the culprit would be in the mailing_label_plugin_display_attachment.

line 36:

          $results[$i][$id] = check_plain(strip_tags(($view->field[$id]->theme($result))));

its the check_plain part that calls htmlspecialchars() which does the conversion you are talking about

see this API entry

this is a good safety measure and should probably be left in place. You could try a form_alter to catch the result set and re-set the htmlentities back to their characters after the plugindisplay attachment has done its thing. perhaps and #after_build call to a reformatting fucntion?

letapjar’s picture

Status: Active » Closed (works as designed)

changing the status to by design - I keep forgetting to set status when I post - sorry for the multiple entires :)

richardtmorgan’s picture

Issue resolved here: http://drupal.org/node/604434