How to allow html (links) in image descriptions?

Permalink
Hi There,

Is there a way to output image descriptions and get the template to render the image description content as html?

I have image galleries and need any links entered to render as html like this.
Image contains: <a href="/shop/product_1">Product 1</a> with <a href="/shop/product_2">Product 2</a>

Hope that makes sense.

Cheers

Ben

 
cmscss replied on at Permalink Best Answer Reply
Ended up using php htmlspecialchars_decode which seems to re-code text as html:

<? if($img->description) : ?>
  <p class="gallery-title"><?= htmlspecialchars_decode($img->description) ?></p>
<? endif; ?>