1
#pragma once
2

            
3
#include <string>
4

            
5
#include "absl/strings/string_view.h"
6

            
7
namespace Envoy {
8
namespace Html {
9

            
10
/**
11
 * General HTML utilities.
12
 */
13
class Utility {
14
public:
15
  /**
16
   * Sanitizes arbitrary text so it can be included in HTML.
17
   * @param text arbitrary text to be escaped for safe inclusion in HTML.
18
   */
19
  static std::string sanitize(absl::string_view text);
20
};
21

            
22
} // namespace Html
23
} // namespace Envoy