I edited my new field, and I've seen bad characters on help text field description.

Instructions to present to the user below this field on the editing form.<br />Allowed HTML tags: &lt;a&gt; &lt;b&gt; &lt;big&gt; &lt;code&gt; &lt;del&gt; &lt;em&gt; &lt;i&gt; &lt;ins&gt; &lt;pre&gt; &lt;q&gt; &lt;small&gt; &lt;span&gt; &lt;strong&gt; &lt;sub&gt; &lt;sup&gt; &lt;tt&gt; &lt;ol&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt; &lt;br&gt; &lt;img&gt;<br />This field supports tokens.

wrong characters

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Rade’s picture

Assigned: Unassigned » Rade

I can take a look at this.

Rade’s picture

Assigned: Rade » Unassigned
Status: Active » Needs review
FileSize
66.53 KB
971 bytes

When concatenating strings using multiple t() functions in the #description, the string formatting behaves differently. I changed the #description to use t() only once, and now it works fine:

droplet’s picture

Status: Needs review » Reviewed & tested by the community
Désiré’s picture

Looks good to me. RTBC++

csakiistvan’s picture

Thanks Rade, looks good.

LinL’s picture

Adding parent issue.

Rade’s picture

organicwire’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
951 bytes

Hi Rade,

just one minor thing: I changed your patch a little: rather use <br /> instead of <br>.

droplet’s picture

Status: Needs review » Reviewed & tested by the community
vitalie’s picture

Hi from Amsterdam Friday sprints. I am going to review this, as I am not sure this actually solves it.

vitalie’s picture

Ok, it seems to work, but I cannot understand why it works. Do you?

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 8: wrong_characters_on-2346611-8.patch, failed testing.

aneek’s picture

aneek’s picture

Status: Needs work » Closed (duplicate)
jibran’s picture

Issue tags: +SafeMarkup