When cloning text that contains greater and smaller symbols, the clonned string object contains buggy characters. If I clone Map<> for example, it clones to Map&lt;&gt; and if I clone Map<T,T> it directly clones to an html fragment snippet.