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 App\Values; trait FormatsLastFmText { /** * Correctly format a ..
Decoded Output download
<?php
namespace App\Values;
trait FormatsLastFmText
{
/**
* Correctly format a value returned by Last.fm.
*/
private static function formatLastFmText(?string $value): string
{
$artifacts = [
'Read more on Last.fm.',
'Read more on Last.fm',
'User-contributed text is available under the Creative Commons By-SA License; additional terms may apply.',
];
return $value
? trim(str_replace($artifacts, '', nl2br(strip_tags(html_entity_decode($value)))))
: '';
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Values;
trait FormatsLastFmText
{
/**
* Correctly format a value returned by Last.fm.
*/
private static function formatLastFmText(?string $value): string
{
$artifacts = [
'Read more on Last.fm.',
'Read more on Last.fm',
'User-contributed text is available under the Creative Commons By-SA License; additional terms may apply.',
];
return $value
? trim(str_replace($artifacts, '', nl2br(strip_tags(html_entity_decode($value)))))
: '';
}
}
Function Calls
| None |
Stats
| MD5 | f53da941077cd7388e153c8716afedc0 |
| Eval Count | 0 |
| Decode Time | 107 ms |