Skip to content

Prevent "special" characters from being removed on upload

@Wulf4096 pointed out that a newline was removed when https_all_the_things either downloaded the data, or modified an unrelated tag and then uploaded the data.

$ curl -s https://api.openstreetmap.org/api/0.6/node/5359159260/history | grep description
  <tag k="description" v="Stylizowana tawerna jest częścią parku Wioska Fantasy.  &#10;Czynna w sezonie od kwietnia do listopada."/>
  <tag k="description" v="Stylizowana tawerna jest częścią parku Wioska Fantasy.  &#10;Czynna w sezonie od kwietnia do listopada."/>
  <tag k="description" v="Stylizowana tawerna jest częścią parku Wioska Fantasy.   Czynna w sezonie od kwietnia do listopada."/>

Not cool. Do better.