Replace < and > with entity references