Problem/Motivation

I'd like to wrap the symbol and currency_code with spans to help style them nicely. But % placeholder in the error message does a check_plain() on a value that is already normally checkplained to death in commerce_currency_format().

Proposed resolution

Use passthrough.

Remaining tasks

User interface changes

API changes

CommentFileSizeAuthor
#1 let_html_be_in_price-2462633-1.patch1.73 KBjoelpittet

Comments

joelpittet’s picture

Status: Active » Needs review
StatusFileSize
new1.73 KB

Here's a quick patch.

  • joelpittet authored f14bf1b on 7.x-1.x
    Issue #2462633 by joelpittet: Let HTML be in price formatters
    
mrsinguyen’s picture

Look great

mrsinguyen’s picture

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

Status: Reviewed & tested by the community » Fixed
joelpittet’s picture

Thank you @mrsinguyen

Status: Fixed » Closed (fixed)

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