Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
html_escape.h
1#ifndef SOURCEMETA_CORE_HTML_ESCAPE_H_
2#define SOURCEMETA_CORE_HTML_ESCAPE_H_
3
4#ifndef SOURCEMETA_CORE_HTML_EXPORT
5#include <sourcemeta/core/html_export.h>
6#endif
7
8#include <sourcemeta/core/html_buffer.h>
9
10#include <string> // std::string
11#include <string_view> // std::string_view
12
13namespace sourcemeta::core {
14
33SOURCEMETA_CORE_HTML_EXPORT
34auto html_escape(std::string &text) -> void;
35
40SOURCEMETA_CORE_HTML_EXPORT
41auto html_escape_append(std::string &output, std::string_view input) -> void;
42
46SOURCEMETA_CORE_HTML_EXPORT
47auto html_escape_append(HTMLBuffer &output, std::string_view input) -> void;
48
49} // namespace sourcemeta::core
50
51#endif
Definition html_buffer.h:19
SOURCEMETA_CORE_HTML_EXPORT auto html_escape(std::string &text) -> void
SOURCEMETA_CORE_HTML_EXPORT auto html_escape_append(std::string &output, std::string_view input) -> void