Xbasic

html_strtran Function

Syntax

C Result = HTML_STRTRAN( html as c , search as c [, replace as c])

Arguments

html

HTML string to search. Character

search

Search string. Character

replace

(optional) replacement string. Character

Description

Perform strtran on the plaintext of html.

Discussion

Perform strtran (case-sensitive string replacement) on the plaintext of html..

Example

? html_strtran("<body> this is in the body </body>","body","*BODY TAG*")
= "<body> this is in the *BODY TAG* </body>"

See Also