On 18 Sep 2008, at 11:30, Sunny Bogawat wrote:

>
> Could you explain with an example I am not understanding you?

Your problem is that truncating works on a character by character  
basis, which has the inbuilt assumption that it's ok to cut off at any  
point.
If you have for example & then it's not find to cut in the middle  
of that. Therefore it is a lot easier to do any truncation before you  
stick in the & and other things like that (or write a version of  
truncate that understands entities and that they should not be messed  
with.

Fred


>
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
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