Add variable value to xpath

So you want to store the complete HTML code in a variable? Can you give an full example with a public website? Otherwise I do not understand what the goal is.