2020-12-26 17:49:59 +01:00
|
|
|
#ifndef UTILS_H
|
|
|
|
#define UTILS_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class Utils {
|
|
|
|
public:
|
|
|
|
static void newline_to_br(std::string *str);
|
|
|
|
//htmlspecialchars
|
|
|
|
|
2020-12-27 03:35:41 +01:00
|
|
|
static void markdown_to_html(std::string *str);
|
|
|
|
|
2020-12-26 17:49:59 +01:00
|
|
|
static void str_replace(std::string *str, const std::string& from, const std::string& to);
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|