DEV Community

Discussion on: Best way to output HTML in Ajax reponse

Collapse
 
defman profile image
Sergey Kislyakov • Edited

Just send the data so if you're going to make something else for your app (a mobile client for example), you won't have to strip out the html or create a new API endpoint.