sonata-project/SonataAdminBundle — pull request #982 by thanosp (2012-09-25 10:30:01+00:00)
Title: Improved the jquery form hack to remove pre tags properly.

Some browsers like ie7-8 add `

` tags around text/plain ajax responses.
The regex detecting that, was case sensitive whereas the IEs print `

` and that could not matched.

As a result json responses in IE7-8 for file uploads using the jquery.form.js plugin appear as text in the popup.

[Example](http://imageshack.us/a/img189/9646/mediatd.jpg)