Code covered by the BSD License  

Highlights from
XMLTestRunDisplay

XMLTestRunDisplay

by

 

28 Nov 2011 (Updated )

JUnit-style XML logger for MATLAB xunit framework

edu.stanford.covert.util.escapeXML(str)
%XML excape a string
function str = escapeXML(str)
str = strrep(str, '&', '&');
str = strrep(str, '"', '"');
str = strrep(str, '''', ''');
str = strrep(str, '<', '&lt;');
str = strrep(str, '>', '&gt;');

Contact us