toHTML - convert Unicode string(s) to HTML

버전 1.3 (2.83 KB) 작성자: Rody Oldenhuis
Convert a (cell) string to its Unicode representation in HTML.
다운로드 수: 318
업데이트 날짜: 2020/5/2

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]...
);

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
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

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.