# Rendering converting characters ... Bad Results

**URL:** <https://www.ruby-forum.com/t/rendering-converting-characters-bad-results/156772>\
**Category:** Radiant CMS\
**Created:** [January 2, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/rendering-converting-characters-bad-results/156772 "2009-01-02T18:15:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@bartee](https://www.ruby-forum.com/u/bartee)\
**Post date:** [January 2, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/rendering-converting-characters-bad-results/156772/1 "2009-01-02T18:15:22Z")

</div>

I am writing an extension to output images.

I have an array of hashes. Each has has a comment and image keys.

Example of 3rd entry in array…

{“comments”=\>“Great pictures for a little Cannon A540 6 megapixel  
camera.”,  
“img”=\>“[http://lh3.ggpht.com/\_oHfKrHmaVuo/SMKpno\_-V7I/AAAAAAAACpg/AcrME-p7\_kg/IMG\_2740.jpg](http://lh3.ggpht.com/_oHfKrHmaVuo/SMKpno_-V7I/AAAAAAAACpg/AcrME-p7_kg/IMG_2740.jpg)”}

When I output this using this code:

```
    %{<img src='#{tag.locals.img}'>}

```

I get this in the browser html ( see clipped below ) … THE PROBLEM is  
in the 3rd img tag…

NOTICE the _that was introduced and the last single quote and  
greater-than are converted to html escaped characters_

 

_??? I have tried bunches of thing, nothing gets rid of this._

 

_The images are not displaying_

 

_------------------- clipped ---------------------------------_

 

_![](http://lh5.ggpht.com/_oHfKrHmaVuo/SMKpkAZS3UI/AAAAAAAACpQ/st7sI3Cxp00/IMG_2737.jpg)_

 

_![](http://lh4.ggpht.com/_oHfKrHmaVuo/SMKpl3v-obI/AAAAAAAACpY/IFT0woax6DY/IMG_2738.jpg)_

 

_\<img  
src='[http://lh3.ggpht.com/](http://lh3.ggpht.com/)oHfKrHmaVuo/SMKpno-V7I/AAAAAAAACpg/AcrME-p7\_kg/IMG\_2740.jpg’\>_

 

_![](http://lh3.ggpht.com/_oHfKrHmaVuo/SMKppaILKMI/AAAAAAAACpo/_NuieyEu3nA/IMG_2741.jpg)_

 

_![](http://lh5.ggpht.com/_oHfKrHmaVuo/SMKpraGN3pI/AAAAAAAACpw/eRPMNwzAuNw/IMG_2742.jpg)_

 

_--------------------- end clip -------------------------------_

---

<div class="post-metadata">

**Author:** ![bartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@bartee](https://www.ruby-forum.com/u/bartee)\
**Post date:** [January 2, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/rendering-converting-characters-bad-results/156772/2 "2009-01-02T18:53:11Z")

</div>

Bartee,

It’s likely you’re filtering something with Textile, which will try to  
convert _some text_ to _some text_. If you can’t turn off the  
filter, wrap the tag in .

Sean
