Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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: <a> <b> <big> <code> <del> <em> <i> <ins> <pre> <q> <small> <span> <strong> <sub> <sup> <tt> <ol> <ul> <li> <p> <br> <img><br />This field supports tokens.
Comment | File | Size | Author |
---|---|---|---|
#2 | wrong_characters_on-2346611-2.patch | 971 bytes | Rade |
#2 | help-text-after.png | 66.53 KB | Rade |
field_edit_wrong_characters.png | 88.24 KB | csakiistvan |
Comments
Comment #1
Rade CreditAttribution: Rade commentedI can take a look at this.
Comment #2
Rade CreditAttribution: Rade commentedWhen 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:
Comment #3
droplet CreditAttribution: droplet commentedComment #4
Désiré CreditAttribution: Désiré commentedLooks good to me. RTBC++
Comment #5
csakiistvanThanks Rade, looks good.
Comment #6
LinL CreditAttribution: LinL commentedAdding parent issue.
Comment #7
Rade CreditAttribution: Rade commentedRelated issue #2346611: Wrong characters on field edit page
Comment #8
organicwire CreditAttribution: organicwire commentedHi Rade,
just one minor thing: I changed your patch a little: rather use
<br />
instead of<br>
.Comment #9
droplet CreditAttribution: droplet commented@organicwire,
@see #1388926: Remove all references to "self-closing" void elements in core
Comment #10
vitalie CreditAttribution: vitalie commentedHi from Amsterdam Friday sprints. I am going to review this, as I am not sure this actually solves it.
Comment #11
vitalie CreditAttribution: vitalie commentedOk, it seems to work, but I cannot understand why it works. Do you?
Comment #13
aneek CreditAttribution: aneek commentedDuplicate of #2309929: HTML double-escaping in field forms
Comment #14
aneek CreditAttribution: aneek commentedComment #15
jibran