mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 01:08:34 +00:00
StringUtil: Move GetEscapedHtml() into Common namespace
This commit is contained in:
parent
21df3ca572
commit
d368c989e7
4 changed files with 8 additions and 8 deletions
|
@ -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("&&&"), "&&&");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue