Takes any tags found in the specified
input string and replaces their contents into one large
block (meaning if multiple script blocks are found, they will be turned into one),
with the addition of ScriptUtils.BEGIN_COMMENT inserted before the logic block and
ScriptUtils.END_COMMENT inserted after the logic block.