Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class HTMLPurifier_HTMLModule_TargetBlankTest extends HTMLPurifier_HTMLModuleHarnes..

Decoded Output download

<?php

class HTMLPurifier_HTMLModule_TargetBlankTest extends HTMLPurifier_HTMLModuleHarness
{

    public function setUp()
    {
        parent::setUp();
        $this->config->set('HTML.TargetBlank', true);
    }

    public function testTargetBlank()
    {
        $this->assertResult(
            '<a href="http://google.com">a</a><a href="/local">b</a><a href="mailto:[email protected]">c</a>',
            '<a href="http://google.com" target="_blank">a</a><a href="/local">b</a><a href="mailto:[email protected]">c</a>'
        );
    }

}

// vim: et sw=4 sts=4
 ?>

Did this file decode correctly?

Original Code

<?php

class HTMLPurifier_HTMLModule_TargetBlankTest extends HTMLPurifier_HTMLModuleHarness
{

    public function setUp()
    {
        parent::setUp();
        $this->config->set('HTML.TargetBlank', true);
    }

    public function testTargetBlank()
    {
        $this->assertResult(
            '<a href="http://google.com">a</a><a href="/local">b</a><a href="mailto:[email protected]">c</a>',
            '<a href="http://google.com" target="_blank">a</a><a href="/local">b</a><a href="mailto:[email protected]">c</a>'
        );
    }

}

// vim: et sw=4 sts=4

Function Calls

None

Variables

None

Stats

MD5 f0e9e2e84e49bc579e3d5625633704a8
Eval Count 0
Decode Time 108 ms