Rename escapeTags to escapeHtml

rename function and update calls.
This commit is contained in:
Adam Magness 2018-11-09 13:27:58 -05:00
parent b5a97c1abe
commit 063f0e9cb0
16 changed files with 44 additions and 44 deletions

View 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(