diff --git a/router/api.js b/router/api.js index 58da83b..a5a4ca6 100644 --- a/router/api.js +++ b/router/api.js @@ -51,10 +51,6 @@ module.exports = (fastify, opts, done) => { const data = JSON.parse(val); const gen_wpt = (name,desc,latlon,icon="Flag") => `0${name}-${desc}${icon}` const esc_str = (str) => str.replace('"',""").replace("'","'").replace("<","<").replace(">",">").replace("&","&").repace("\n","...") - ' - < < - > > - & & data.main.forEach(a => { file+= gen_wpt(esc_str(a.hotel.name), esc_str(a.hotel.notes), a.hotel.latlon, icon="Hotel"); a.places.restaurants.forEach(b => {