Set variable by node text

Set a variable to the content of an HTML element.