3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "Parameter1":"<style> #label-9 { display: block; text-align: left; color: #fff; } </style>", "HistoryPosition":"1" }'; // remove the newlines and replace them with the literal JS newline $clean = str_replace(["\r", "\n"], ['', ''], $json); var_dump(json_decode($clean));

preferences:
18.14 ms | 402 KiB | 5 Q