Yeah, I ended up doing that basically, but in some specific helpers.  My
coworker refined it though using the htmlentities plugin.  You can see it
here:
http://github.com/kete/kete/tree/master/lib/oai_dc_helpers.rb#L135

Long term we may do this for all the xml values, not just our dc:description
element.  So it might move up to monkey patching builder or more general
spot or something.

Cheers,
Walter

On Wed, Nov 12, 2008 at 1:20 PM, Frederick Cheung <
[EMAIL PROTECTED]> wrote:

>
>
>
> On Nov 11, 10:16 pm, mcginniwa <[EMAIL PROTECTED]> wrote:
> > The html tags SHOULD be escaped, while the unicode characters
> > shouldn't be.  My work around will simply be to strip out the embedded
> > HTML, but this a problem that people should be aware of when using the
> > monkey patch.
> >
> Many moons ago I overrode the String#to_xs method that builder adds to
> just escape the vitals (ie &<>'" ) instead of all the extra stuff it
> does.
>
> Fred
>
> > Cheers,
> > Watler
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to