<?php
$html = '<div> test 1 " 2 </test>';
var_dump(json_encode($html));
"<div> test 1 \" 2 <\/test>"
что является на 100% валидной json-строкойtimeout
в MySQLmysql> show variables like '%timeout';
+--------------------------+-------+
| Variable_name | Value |
+--------------------------+-------+
| connect_timeout | 5 |
| delayed_insert_timeout | 300 |
| innodb_lock_wait_timeout | 50 |
| interactive_timeout | 90000 |
| net_read_timeout | 90000 |
| net_write_timeout | 60 |
| slave_net_timeout | 3600 |
| table_lock_wait_timeout | 50 |
| wait_timeout | 90000 |
+--------------------------+-------+
9 rows in set (0.03 sec)
https
music.yandex.ru
/album/24249332/track/111305877
/api/*
нужно обрабатывать через index.php