Answer the question
In order to leave comments, you need to log in
How to fix json?
Collecting json for ajax request. Html markup makes it invalid, how to solve this problem?
$response = array(
"html" => $template,
"show" => 'true'
);
header('Content-type: application/json; charset=utf-8');
$json = json_encode($response );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question