As per title, is it considered a good practice to put HTML in JSON? The reason I need to do this is because I would like to have a custom dropdown where the list is coming f
There's nothing wrong with it. json_encode escapes all characters anyway, so the only thing you have to beware of is make sure your strings are utf8_encoded.