-- Leo's gemini proxy
-- Connecting to warmedal.se:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini; lang=en
There are more scripts out there with the same name, and I apologize for any confusion that might cause.
After quite a bit of testing and fruitful discussions with Solène I've finally come around to implementing some changes and features.
New in this release:
There is now an option to inline image links. If a linked file ends in .png, .jpg, .jpeg, .gif, .webp, or .svg (case insensitive) and the option '--inline-img' is provided as an <img> tag instead of an <a> tag. Link text will be added as the alt= attribute.
"Usage" now provided on '-h' or '--help'.
Input is sanitized: < and > are replaced with < and > respectively, and & becomes &.
Input sanitation goes even further: any text that will end up in html tag attributes (which the script wraps in single quotes) is stripped of ' and \, removing the risk of extra attributes being injected.
No dependencies have been introduced; you still only need the python3 core installation to run.
Enjoy! And let me know if you find bugs or have feature suggestions 😊️
-- CC0 ew0k, 2021-03-27
-- Response ended
-- Page fetched on Sat May 4 10:53:48 2024