mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
StringUtil: Move GetEscapedHtml() into Common namespace
This commit is contained in:
@ -86,7 +86,7 @@ TEST(StringUtil, GetEscapedHtml)
|
||||
static constexpr auto no_escape_needed =
|
||||
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
||||
"!@#$%^*()-_=+,./?;:[]{}| \\\t\n";
|
||||
EXPECT_EQ(GetEscapedHtml(no_escape_needed), no_escape_needed);
|
||||
EXPECT_EQ(GetEscapedHtml("&<>'\""), "&<>'"");
|
||||
EXPECT_EQ(GetEscapedHtml("&&&"), "&&&");
|
||||
EXPECT_EQ(Common::GetEscapedHtml(no_escape_needed), no_escape_needed);
|
||||
EXPECT_EQ(Common::GetEscapedHtml("&<>'\""), "&<>'"");
|
||||
EXPECT_EQ(Common::GetEscapedHtml("&&&"), "&&&");
|
||||
}
|
||||
|
Reference in New Issue
Block a user