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



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

<strlen></strlen>

Provided by module: Tags: RXML tags

Returns the length of the content, which is treated as text/plain.

There are <strlen>foo bar gazonk</strlen> characters inside the tag.
There are 14 characters inside the tag.

See also the <elements> tag for use with non-string types.

Compatibility note: Before 5.0, this tag HTML encoded values from variable entities in the content. If you e.g. had the single character < in the variable var.a then <strlen>&var.a;</strlen> would produce 4 instead of 1 because it converted the < to &lt; first. That no longer occurs, which makes this tag consistent with e.g. <if sizeof> and the sizeof() expression operator. The old behavior is retained if the compatibility level is 4.5 or less.