Filter line and paragraph separators

After pasting some text into a Types.Input field I realised that the search and filtering no longer worked because the text contained a line separator. I found that whereas JSON can contain line and paragraph separators, JavaScript strings cannot. This patch strips the line and paragraph separators from the Types.Input and Types.Textarea fields.