LCOV - code coverage report
Current view: top level - source/common/html - utility.cc (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 0 4 0.0 %
Date: 2024-01-05 06:35:25 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #include "source/common/html/utility.h"
       2             : 
       3             : #include <string>
       4             : 
       5             : #include "absl/strings/str_replace.h"
       6             : 
       7             : namespace Envoy {
       8             : namespace Html {
       9             : 
      10           0 : std::string Utility::sanitize(absl::string_view text) {
      11           0 :   return absl::StrReplaceAll(
      12           0 :       text, {{"&", "&amp;"}, {"<", "&lt;"}, {">", "&gt;"}, {"\"", "&quot;"}, {"'", "&#39;"}});
      13           0 : }
      14             : 
      15             : } // namespace Html
      16             : } // namespace Envoy

Generated by: LCOV version 1.15