I have a paragraph tag with some text and an anchor within it. How would I remove just the text and not the anchor link? I've looked into .innerHTML, but I can't mess with the anchor link because it's href value is dynamically generated.
<p>Text to be removed <a href="blahrdyblahr">Link Text</a></p>