[feature] add support for optional XML and HTML pretags