When using tokens in the popup, special characters are shown escaped due to the use of Token::replace().

Example:
Escaped

Comments

matthiasm11 created an issue. See original summary.

matthiasm11’s picture

StatusFileSize
new2.37 KB

Extract from the Token::replace() function comments:

@return string
   *   The token result is the entered HTML text with tokens replaced. The
   *   caller is responsible for choosing the right escaping / sanitization. If
   *   the result is intended to be used as plain text, using
   *   PlainTextOutput::renderFromHtml() is recommended. 

As described in the comment, I added PlainTextOutput::renderFromHtml().

matthiasm11’s picture

Assigned: matthiasm11 » Unassigned
Status: Active » Needs review

christianadamski’s picture

Status: Needs review » Fixed

Comitted as is. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.