Fix: escape text when surrounded by quotes

Note: this causes things like ampersand signs to be escaped as HTML
codes and will need to be unescaped later to be useful.