toHTML - convert Unicode string(s) to HTML

Convert a (cell) string to its Unicode representation in HTML.
318 descargas
Actualizado 2 May 2020

TOHTML Converts strings to their UTF-8 HTML representation
str = TOHTML(str) converts the input string or cell array of strings to its Unicode representation in HTML. All characters but one: any occurrence of the newline character (char(10)) will be converted to the string '<br>'.
This function is most useful when creating buttons in a GUI, that need to contain a multi-line string with Unicode characters. For example:

EXAMPLE:

uicontrol(...
'style' , 'pushbutton',...
'units' , 'normalized',...
'string' , toHTML(['θ·Ω' char(10) 'A×B']),...
'position', [0.05 0.05 0.1 0.1]...
);

Citar como

Rody Oldenhuis (2024). toHTML - convert Unicode string(s) to HTML (https://github.com/rodyo/FEX-toHTML/releases/tag/v1.3), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2010a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Characters and Strings en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

No se pueden descargar versiones que utilicen la rama predeterminada de GitHub

Versión Publicado Notas de la versión
1.3

See release notes for this release on GitHub: https://github.com/rodyo/FEX-toHTML/releases/tag/v1.3

1.2.0.0

[linked to Github]

1.1.0.0

Updated contact info

1.0.0.0

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.