docs.roxen.comBack to normal mode
DocsRoxenWebServer 6.1Web Developer ManualText Tags
Copyright © 2021, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

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