From 4fe0a037c82332e84b16a6f0e2847a2f9a0bd5d7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 18 Oct 2020 18:27:11 +0200 Subject: Matrix: add a proper URI parser instead of regex for opening links. Show related body item image when pressing enter (for showing replied to media) --- include/NetUtils.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 include/NetUtils.hpp (limited to 'include/NetUtils.hpp') diff --git a/include/NetUtils.hpp b/include/NetUtils.hpp new file mode 100644 index 0000000..84b9d18 --- /dev/null +++ b/include/NetUtils.hpp @@ -0,0 +1,11 @@ +#pragma once + +#include +#include + +namespace QuickMedia { + void html_escape_sequences(std::string &str); + void html_unescape_sequences(std::string &str); + std::string url_param_encode(const std::string ¶m); + std::vector extract_urls(const std::string &str); +} \ No newline at end of file -- cgit v1.2.3