ensure that text is ignored outside of a block inside of a parent tag