Text/Transformer/EmailAddressToHtml.php
\Conjoon_Text_Transformer_EmailAddressToHtml
Package: Conjoon\Text
Transforms a text by looking up tokens which look like email addresses and replaces them with html code to make those addresses clickable in a document.
Example:
Input:
This is a text. You can answer user@domain.tld if you like.
Output:
This is a text. You can answer user@domain.tld if you like.
- Parent(s)
- \Conjoon_Text_Transformer
- Author
- Thorsten Suckow-Homberg
- Category
- Text
- Uses
- \Conjoon_Text_Transformer
Properties

$_options= ''
inherited
Inherited from:
\Conjoon_Text_Transformer::$$_options
Details
- Type
- n/a
- Inherited_from
- \Conjoon_Text_Transformer::$$_options
- Type
- mixed
Methods

__construct(
$options
=
array()
)
:
void
inherited
Inherited from:
\Conjoon_Text_Transformer::__construct()
Parameters
| Name | Type | Description |
|---|---|---|
| $options |

transform(
string $input
)
:
stringTakes an input argument and transforms $input to the $output string.
Parameters
Returns
Throws
Details
| Name | Type | Description |
|---|---|---|
| $input | string |
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Conjoon_Text_Transformer_Exception |
- Inherit
- Conjoon_Text_Transformer::transform