# MATLAB: How to get plain text diary files

diary fileunit tests

I am trying to use diary() to save unit test output in plain text files for later checking. The output is pretty hard to read, though, because of embedded markup. For example:
    --> Failure table:                <strong>Index</strong><strong>     Actual </strong><strong>    Expected</strong><strong>     Error  </strong><strong>    RelativeError</strong><strong>    AbsoluteTolerance</strong><strong>    RelativeTolerance</strong>                <strong>_____</strong>    <strong>________</strong>    <strong>________</strong>    <strong>________</strong>    <strong>_____________</strong>    <strong>_________________</strong>    <strong>_________________</strong>                3        1.704375    1.5         0.204375    0.13625          0.005                0.005
Is there some way to turn off this markup, or some more convenient way to save unit test output to a file that I can read in a plain-text editor? I'd like to get the same output that is produced by copying and pasting from the command window, which looks like this (but of course I want to get it programmatically):
    --> Failure table:                Index     Actual     Expected     Error      RelativeError    AbsoluteTolerance    RelativeTolerance                _____    ________    ________    ________    _____________    _________________    _________________                3        1.704375    1.5         0.204375    0.13625          0.005                0.005
Thanks,