Trim and escape list item texts