diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-18 18:27:11 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-18 18:27:11 +0200 |
commit | 4fe0a037c82332e84b16a6f0e2847a2f9a0bd5d7 (patch) | |
tree | 1789706873ccc7095414f44b1a85fe64b6e62345 /include | |
parent | f5dc7e2c85436877606af46a011c2fba112185a9 (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.hpp | 11 |
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 ¶m); + std::vector<std::string> extract_urls(const std::string &str); +}
\ No newline at end of file |