Answers for "how to send html content in json"

PHP
0

Sending HTML Code Through JSON

$html_content="<p>hello this is sample text</p>";
$json_array=array(
'html_content'=>$html_content
);
echo json_encode($json_array);
Posted by: Guest on May-20-2020

Code answers related to "how to send html content in json"

Browse Popular Code Answers by Language