extract escaping of characters to plugin
update PHPDoc