This plugin performs simple replacements, best suited for handling emoticons. Matching is case-sensitive.

Example

$configurator = new s9e\TextFormatter\Configurator;
$configurator->Emoticons->add(':)', '<img src="happy.png" alt=":)" title="Happy">');

// Get an instance of the parser and the renderer
extract($configurator->finalize());

$text = 'Hello world :)';
$xml  = $parser->parse($text);
$html = $renderer->render($xml);

echo $html;
Hello world <img src="happy.png" alt=":)" title="Happy">