support FLAG_NOESCAPE
add regression tests for FLAG_NOESCAPE
update history