Hello! I’ve parsed the website and removed all the markup using an HTML extractor, but I still have newline and tab characters (\n and \t) left. Can you advise on how to remove them? My code block is unable to do this. How can I create clean text in this format:
Jasmin-Apotheke (ca. 1.5 km)
Lortzingstr. 42
13355 Berlin
Notdienst vom: 03.10.2023 09:00 - 04.10.2023 08:59
Telefon: 030 46404615
const inputList = $input.all();
// Cleaning each element of the list from spaces, newline, and tab characters
const cleanedList = inputList.map(item => {
if (typeof item === 'string') {
return item.replace(/\s+/g, '').replace(/\\n/g, '').replace(/\\t/g, '');
}
return item; // If an element is not a string, leave it unchanged
});
// Return the cleaned list
return { cleanedList };
MyWorkflow:
