truncate content for searched result