<?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));
You have javascript disabled. You will not be able to edit any code.