#ifndef HTMLUTIL_HH #define HTMLUTIL_HH #include #include namespace html { enum class EscapeTarget { BODY, ATTRIBUTE, }; std::string escape(std::string_view in, EscapeTarget target = EscapeTarget::BODY); void escape(std::string_view in, std::string* out, EscapeTarget target = EscapeTarget::BODY); } // namespace html #endif // HTMLUTIL_HH