It works.

Thank you for your attention!

On Apr 7, 9:33 pm, Matt Jones <[email protected]> wrote:
> On Apr 7, 2010, at 4:20 PM, Daniel M wrote:
>
>
>
>
>
> > I' m missing something.
>
> > the :html field works fine if i directly save on the database the
> > following code:
>
> > <iframe width="425" height="350" frameborder="0" scrolling="no"
> > marginheight="0" marginwidth="0" src="http://maps.google.com/?
> > ie
> > =
> > UTF8
> > &amp
> > ;ll
> > =
> > 37.0625
> > ,-95.677068
> > &amp;spn=38.365962,79.013672&amp;t=h&amp;z=4&amp;output=embed"></
> > iframe><br /><small><a href="http://maps.google.com/?
> > ie
> > =
> > UTF8
> > &amp
> > ;ll
> > =
> > 37.0625
> > ,-95.677068
> > &amp;spn=38.365962,79.013672&amp;t=h&amp;z=4&amp;source=embed"
> > style="color:#0000FF;text-align:left">View Larger Map</a></small>
>
> > But if I save on the form the same code, it only save the on the
> > database the following :
>
> > <a href="http://maps.google.com/?
> > ie
> > =
> > UTF8
> > &amp
> > ;ll
> > =
> > 37.0625
> > ,-95.677068
> > &amp;spn=38.365962,79.013672&amp;t=h&amp;z=4&amp;source=embed"
> > style="color: #0000FF; text-align: left;">View Larger Map</a>
>
> > Any idea why the iframe tag is missing?
>
> Because :html passes everything through HoboFields::HTMLSanitizer  
> before saving, which eats iframe tags. Changing the field to :raw_html  
> will skip this step.
>
> --Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to