throw RoutingException::
invalidRequestParameter($field);
} $flag =
$property->
getFlag(AllowHtml::
class);
if ($flag === null
) { return new JsonResponse( ['preview' =>
strip_tags($html)] );
} if ($flag instanceof AllowHtml && !
$flag->
isSanitized()) { return new JsonResponse( ['preview' =>
$html] );
} return new JsonResponse( ['preview' =>
$this->htmlSanitizer->
sanitize($html,
[], false,
$field)] );
} private function fetchLanguageIdByName(string
$isoCode, Connection
$connection): ?string
{