]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/StringsTest.php
Rename escapeTags to escapeHtml
[friendica.git] / tests / src / Util / StringsTest.php
index 54a4bdd72748e5b970dd2a8c1b4cf2de2eff3b19..352fe3089b52f97e71102e756bc1f5ae7112e60f 100644 (file)
@@ -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(