uttags.wbb

Appends text with specified HTML markup tags, to a HTML string

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>

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>

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

 

 
Return to first page