limiting to 10 characters
truncate("im srikanth glad to meet you", 10)
>> "im srik..."
For HTML stripping, I have used gsub..
>> "im srik..."
str.gsub(/<\/?[^>]*>/, "")
my blog is abt wht i have learnt technically, mostly in Ruby on Rails, Javascript, node.js hope this share a little bit of info & adds a bit stuff., Thanks.