As from jquery 1.9, all HTML literals passed to the JQuery object must start with the less-than ("<") character.
To avoid trouble with whitespaces, we therefore trim the html parameter before passing it.