#include "common/html/utility.h" #include #include "absl/strings/str_replace.h" namespace Envoy { namespace Html { std::string Utility::sanitize(const std::string& text) { return absl::StrReplaceAll( text, {{"&", "&"}, {"<", "<"}, {">", ">"}, {"\"", """}, {"'", "'"}}); } } // namespace Html } // namespace Envoy