wordtoimage

Summary

Returns the input string with embedded image tags.

Usage

input|wordtoimage()

Returns

The input string with embedded image tags.

Description

This operator looks for special character sequences in the input string. When a match is found, it will be replaced by an image tag. For example, the sequence ":-)" will be replaced by a small image of a smiling face. The character sequences that should be replaced and the images that should be used are defined in the "wordtoimage.ini" configuration file.

Examples

Example 1

{'No problemo... :-)'|wordtoimage()}

This would return the input string where the ":-)" sequence would be replaced by an image tag referencing a small image of a smiling face.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.