I have an article list page. It needs to show some content information about this article.
If I only use:
truncate @article.content,:length=>100
It will show some html tag, and doesn’t show the real content to the user. I want to find some way to get the text extract from the content, so I want to ask is there some embedded way to achieve this?
You could use
strip_tagsto remove the html tags: