Display diagnostics in text format for xhr request
Merge pull request #14745 from razum2um/plain-text-diagnostics

Display diagnostics in text format for xhr request