aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-18 18:27:11 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-18 18:27:11 +0200
commit4fe0a037c82332e84b16a6f0e2847a2f9a0bd5d7 (patch)
tree1789706873ccc7095414f44b1a85fe64b6e62345 /include
parentf5dc7e2c85436877606af46a011c2fba112185a9 (diff)
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)
Diffstat (limited to 'include')
-rw-r--r--include/NetUtils.hpp11
1 files changed, 11 insertions, 0 deletions
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 <string>
+#include <vector>
+
+namespace QuickMedia {
+ void html_escape_sequences(std::string &str);
+ void html_unescape_sequences(std::string &str);
+ std::string url_param_encode(const std::string &param);
+ std::vector<std::string> extract_urls(const std::string &str);
+} \ No newline at end of file