Escape markup text properly