Skip to the content
Documentation

wordtoimage

No ratings yet

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.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.