Issue #2340785 by mpdonadio: Create proper test method for determining if text has been escaped properly.