std::string_view username = Sanitize("foobarbazboo");
                                        ^- temporary std::string created here

  std::string_view Sanitize(const std::string& input) { ... }
                 ^                           ^- reference to that temporary string
                 +- returns a view to a temporary string

  std::string_view username = // possibly data freed and dangling string