Escape text before insert in markup