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 namespace Pagekit\Filter; /** * This filter converts the value unicode slug. */ ..
Decoded Output download
<?php
namespace Pagekit\Filter;
/**
* This filter converts the value unicode slug.
*/
class SlugifyFilter extends AbstractFilter
{
/**
* {@inheritdoc}
*/
public function filter($value)
{
$value = preg_replace('//', ' ', (string) $value);
$value = str_replace('-', ' ', $value);
$value = preg_replace('#[:\#\*"@+=;!><&\.%()\]\/\'\\|\[]#', " ", $value);
$value = str_replace('?', '', $value);
$value = trim(mb_strtolower($value, 'UTF-8'));
$value = preg_replace('# +#', '-', $value);
return $value;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Pagekit\Filter;
/**
* This filter converts the value unicode slug.
*/
class SlugifyFilter extends AbstractFilter
{
/**
* {@inheritdoc}
*/
public function filter($value)
{
$value = preg_replace('/\xE3\x80\x80/', ' ', (string) $value);
$value = str_replace('-', ' ', $value);
$value = preg_replace('#[:\#\*"@+=;!><&\.%()\]\/\'\\\\|\[]#', "\x20", $value);
$value = str_replace('?', '', $value);
$value = trim(mb_strtolower($value, 'UTF-8'));
$value = preg_replace('#\x20+#', '-', $value);
return $value;
}
}
Function Calls
None |
Stats
MD5 | 4b851b7a2353cba68bded87e249a222e |
Eval Count | 0 |
Decode Time | 98 ms |