function out = str_to_html(in)
%

%   Copyright 1990-2016 The MathWorks, Inc.

    out = strrep(in, '&', '&amp;');
    out = strrep(out, '<', '&lt;');
    out = strrep(out, '>', '&gt;');
    out = strrep(out, '''', '&apos;');    
    out = strrep(out, '"', '&quot;');  