code2html
- :
html =code2html(str)¶ Wrap the text str for display in HTML: the characters ‘&’, ‘<’ and ‘>’ are replaced by their entities and the result is enclosed in
<pre>tags. The text is used as given and is not taken to be a file name. Anything that is not text counts as empty; a character matrix or a cell array contributes only its first row or element.