I have this HTML Code
I want to insert above code into JSON using PHP .. ?
How to do it … ?
We can make like code below:
- All atribute inside HTML prefer quoted with single quote
- JSON_UNESCAPED_SLASHES mean do not escape /
The JSON data type is string and the result is:
Thanks For Reading