#ZegnatWhat is the usecase? Inserting potential HTML as text? I think the "correct" way to do that is createTextNode, where you can safely use < and >. For almost everything else the correct way is to write out the unicode symbol and not create HTML entities.