uttags.wbb - Appends Text with Specified HTML Markup Tags, to an HTML String

Syntax

CALL "uttags.wbb", tags$, text$, html$

Description

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.

Parameter

Description

tags$

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 supported tags are listed in the table below.

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$.

 

Tag

Description

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> If name contains an ASCII 2 ($02$) character, the data before the $02$ is used as the "href" portion of the link, and data after the $02$ is added to the <a ...> tag after the "href=" element. This is useful for specifying things such as target frames in a link. For example, if the name is "/cgi-bin/showpage?id=1"+$02$+"target=A", the generated tag would be "<a href="/cgi-bin/showpage?id=1" target=A>...</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>