Hi,
just want to inform you that if you pass a empty or null value as $html parameter to replaceTemplateVariableByHTML() method, you'll get a fatal error. It would be fine if the library detect such values for its own and redirect to addTemplateVariable($var, '').