Syntax
CALL "uttags.wbb", tags$, text$, html$
This high-level routine is used to add HTML markup tags to text. When there are no structure conflicts, multiple tags can be added with a single CALL by separating the tags with commas. In all cases, tags are applied to text$, and the result is appended to html$, along with a CR-LF sequence. If there are no tags, text$ is appended to html$, along with a CR-LF sequence to aid readability.
tags$ is a comma-separated list of tags, some of which may contain options. In many cases, a tag causes both a pre- and a post-tag to be added to text$ because there are many HTML tags with both opening and closing parts.
The tags supported are:
|
b |
adds <b> and </b> |
|
body options |
adds <body options> and </body> |
|
br |
appends <br> |
|
center |
adds <center> and </center> |
|
comment |
adds <!-- and --> |
|
form action |
adds <form action="action" method=post> and </form> |
|
form-up |
Adds <form action=action method=post
enctype=multipart/form-data> and </form> |
|
h1..6 |
adds <hn> and </hn> |
|
head |
adds <head> and </head> |
|
Hidden name |
replaces text$ with <input type="hidden" name="name"
value="text$"> |
|
Hr |
prepends a <hr> tag |
|
Href name |
adds <a href="name"> and </a> |
|
Html |
adds <html> and </html> |
|
I |
adds <i> and </i> |
|
Img altname |
replaces text$ with <img src="text$" alt="altname"> |
|
P |
prepends a <p> tag to text$ |
|
Pre |
adds <pre> and </pre> |
|
Rem |
same as comment |
|
Reset |
replaces text$ with <input type="reset" name="text$"> |
|
Submit value |
replaces text$ with <input type="submit" value="value"
name="text$"> |
|
Title |
adds <title> and </title> |
text$ receives pre- and post- html tags in the order listed in tags$, except where text$ is replaced.
html$ returns its original value, plus the formatted value of text$.