Added a flag for keeping placeholder tags

As already discussed, this change would allow to set a keepBlockTags flag, which would preserve the start and end block tag during replace.