D
D
Dc8882015-09-11 20:05:40
JSON
Dc888, 2015-09-11 20:05:40

How to fix link output in parsed json?

json. when displaying information from the database - let's say a picture, the database is stored with all the text, let's say: Hello everyone <img src="images/news/0_180e93_bc8e44dc_orig.jpg"> and everything is fine, but when outputting json information, it gives such a link - < img src="\"/images/news/0_180e93_bc8e44dc_orig.jpg\"">, the same with the video if the html code of the video is copied from YouTube, here's how to fix it \/ "" characters and unnecessary quotes
and immediately another question arose yet one, let's say in the upload file those - url: 'load.php', the information is not immediately taken, but first passes through the variables, those $name =" $soname ";
the question is why does it drop?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question