Forum

Thread tagged as: Question, Problem, Blog

Using $ in a select field type

Hi,

I've got a field in a blog post with this line of code:

<perch:blog id="event_currency" type="select" options="£|&pound;,$|&dollar;,€|&euro;" label="Currency" help="Select the currency for the event price" order="7" />

The £ and € symbols show up on the front-end absolutely fine, but the $ symbol shows up as &dollar; and isn't rendered as the symbol.

Is this a bug? I can get it working by using just '$', but I was hoping to implement it properly in the code.

Cheers, Phil

Philip Gwynne

Philip Gwynne 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If your pages are UTF8 you don't need to encode those characters at all.

Thanks Drew!