Tags:
view all tags
---+ .CONVERT HTML TO TEXT _This subroutine converts a HTML field to plain APPX text. Release 5.5. & higher._ <br />%TOC% ---++ Usage: <pre> PASS <text> FIELD SHARE? Y PASS <html> FIELD SHARE? N GOSUB --- .CONVERT HTML TO TEXT * check for errors IF --- .CONVERT HTML TO TEXT NE </pre> ---++ Description: This subroutine converts a field containing HTML tags and encodings into plain APPX text. All parameters are required, if any are missing the subroutine will CANCEL. <text> returns the converted HTML (Required). This must be PASSed with Share "Y" to return the value. <HTML> is the HTML data you want converted (Required). This routine will first convert any <br /> tags to chr(182), strip all remaining HTML tags, then convert any HTML entites into their ISO-8859-15 single byte equivalents, ie, ¶ becomes the paragraph symbol (chr(182)), etc. Entities that can't be converted will be changed to a space. If <text> is too small to contain the converted text, --- .CONVERT HTML TO TEXT will contain 'Data was truncated'. Also see [[0LASubrConvertTextToHTML][.CONVERT TEXT TO HTML]] ---++ Comments: _Read what other users have said about this page or add your own comments._ <br />%COMMENT% -- Main.JeanNeron - 2019-07-09
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2019-07-10
-
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
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
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback