Hi Jay.
I dare say you could do this via a find and replace tool.
There is such a tool within RH but the one you'd need must be able
to search for instances in the HTML where the conditional text or
variable tag is split over several lines. The most frequently ones
mentioned on these forums that allow for this are
FAR and
bkreplacem.
What you'd need to do is look for a pattern in your
conditional text tag, use the "start with", "end with" and
"contains" fields as appropriate to find the tag and replace with
the variable HTML. You will have to do a bit of testing first
before you apply the final changes so take backups at each step and
be prepared to revert back as required. Best of luck.