mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:10:11 +00:00
Rename escapeTags to escapeHtml
rename function and update calls.
This commit is contained in:
parent
b5a97c1abe
commit
063f0e9cb0
16 changed files with 44 additions and 44 deletions
|
@ -69,12 +69,12 @@ class StringsTest extends TestCase
|
|||
/**
|
||||
* test, that tags are escaped
|
||||
*/
|
||||
public function testEscapeTags()
|
||||
public function testEscapeHtml()
|
||||
{
|
||||
$invalidstring='<submit type="button" onclick="alert(\'failed!\');" />';
|
||||
|
||||
$validstring = Strings::removeTags($invalidstring);
|
||||
$escapedString = Strings::escapeTags($invalidstring);
|
||||
$escapedString = Strings::escapeHtml($invalidstring);
|
||||
|
||||
$this->assertEquals('[submit type="button" onclick="alert(\'failed!\');" /]', $validstring);
|
||||
$this->assertEquals(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue