wash

Summary

General text wash. Translates bogus strings to friendly ones.

Usage

$string|wash( [type] )

Parameters

NameTypeDescriptionRequired
type string Type of wash. no

Returns

washed/friendly version of input string.

Description

This is a general character/string washing operator. The first (and only) parameter specifies the washing type: email or xhtml; xhtml is default. If you have a string that contains bogus characters (or sequences) that could mess up your page, you should "wash" the string before outputting it.

Examples

Example 1

{"bogus string <"|wash}

returns the string "bogus string &lt;"

Example 2

{"hello@example.com"|wash("email")}

returns the string "hello[at]example[dot]com"

Comments

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
       mimetype_icon
       append
       begins_with
       break
       ord
       compare
       concat
       contains
       count_chars
       count_words
       crc32
       downcase
       ends_with
       explode
       extract
       extract left
       extract_right
       indent
       insert
       md5
       nl2br
       chr
       pad
       prepend
       remove
       repeat
       reverse
       rot13
       shorten
       simplify
       trim
       upcase
       upfirst
       upword
       wash
       wordtoimage
       wrap
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
12:02:10 pm
by Balazs Halasy

Last updated

10/02/2004
11:41:36 am
by Balazs Halasy

Authors

Balazs Halasy



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.