Tags:
tag this topic
create new tag
view all tags
---+ .CONVERT TEXT TO HTML _This subroutine converts a text field to HTML encoding._ <br />%TOC% ---++ Usage: <pre> PASS <html> FIELD SHARE? Y PASS <text> FIELD SHARE? N PASS <html_header> FIELD SHARE? N PASS <html_footer> FIELD SHARE? N GOSUB --- .CONVERT TEXT TO HTML * check for errors IF --- .CONVERT TEXT TO HTML NE </pre> ---++ Description: This subroutine converts a text field to HTML encoding. The first two parameters are required, if any are missing the subroutine will CANCEL. The <html_header> and <html_footer> parameters are optional. <html> returns the converted <text> (Required). This must be PASSed with Share "Y" to return the value. <text> is the text data you want converted to html (Required). <html_header> is the html code you want inserted at the beginning of <html> (Optional). If not PASSed or blank, it will default to <HTML><BODY><FONT FACE=HELVETICA> <html_footer> is any html code you want added to the end of <html> (Optional). This routine will replace any end of line characters (Go-Return) with <br> and a pair of end of line characters with <p>. The symbols <, >, &, and hard spaces (underscores) will be converted to their HTML equivalents. If <html> is too small to contain the converted text, --- .CONVERT TEXT TO HTML will contain 'Data was truncated'. Also see [[0LASubrConvertHtmlToText][.CONVERT HTML TO TEXT]] ---++ Comments: _Read what other users have said about this page or add your own comments._ <br />%COMMENT% -- Main.JeanNeron - 2012-02-03
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r5 - 2020-05-12
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback