The issue is that I am using mod_proxy_html and the response is wrapped inside <html><body><p>AJAX RESPONSE</body></p></html>

This is done by mod_proxy_html and I want to avoid this from happening. Please suggest.