Added 'keepBlockTags' flag to keep place holder block tags even after replacement.