Spoilers4Gpx is a tool to include geocache's spoilers in GPX files.
For geocache owners
The only way to include spoilers into GPX is to put the spoiler's links into the description.
Fill the text box with the list of your caches, and Spoilers4Gpx will return a HTML code to put into each of your caches.
It's completely invisible on the listing! In this manner, spoilers will be inserted into the GPX file and softwares about geocaching could download spoilers without having to fetch caches on geocaching.com.
There are two ways to use this web app:
1st method:
Copy/paste a list a GC code in the text box to obtain the list of pictures included on listing.
2nd method:
For developers
For information, Markdown is used here, it's simple to write and parse. Links are written in this way:
<!-- Spoiler4Gpx [Title](url_of_your_spoiler) -->
But the only thing you need is the regex to retrieve titles and URLs:
/<!-- Spoiler4Gpx \[([^]]*)\]\(([^)]*)\) -->/