Is there an HTML safe truncate method in Rails?

后端 未结 10 687
执笔经年
执笔经年 2020-12-24 05:45

I have a string of HTML in Rails. I\'d like to truncate the string after a certain number of characters not including the HTML markup. Also, if the split happens to fall in

10条回答
提交回复
热议问题