docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 4.5Web Developer ManualText Tags
Copyright © 2012, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

<ai>
<autoformat>
<case>
<charset>
<comment>
<?comment ?>
<default>
<doc>
<foldlist>
<format-number>
<obox>
<random>
<recode>
<replace>
<sed>
<smallcaps>
<sort>
<strlen>
<tablify>
<trimlines>
<wash-html>

<replace></replace>

Provided by module: Tags: RXML 2 tags

Replaces strings in the content with other strings.


Attributes

from="string"

String to be replaced.

When the "type" argument is "words", this is a list of strings separated according to the "separator" argument.


to="string"

Replacement string. The default is "" (the empty string).

When the "type" argument is "words", this is a list of strings separated according to the "separator" argument. The first string in the "from" list will be replaced with the first one in the "to" list, etc. If there are fewer "to" than "from" elements, the remaining ones in the "from" list will be replaced with the empty string. All replacements are done in parallel, i.e. the result of one replacement is not replaced again with another.


first="integer"

If specified, only replace the first number of specified occurances. Works only together with type='word'


last="integer"

If specified, only replace the last number of specified occurances. Works only together with type='word'


type="{word, words}" (word)

"word" means that a single string is replaced. "words" replaces several strings, and the "from" and "to" values are interpreted as string lists.


separator="string" (,)

The separator between words in the "from" and "to" arguments. This is only relevant when the "type" argument is "words".