truncate element content