In Python I want to replace <phrase>the cow jumped over the moon</phrase>
with <phrase>the_cow_jumped_over_the_moon</phrase>
so only within <phrase>
and </phrase>
blank spaces should be replaced with _ which is an underscore
All other places should not be changed