mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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