title: JMeter functions and variables
body: <p>I'm new to JMeter so this question may sound absolutely dumb...</p>
  
  <p>I have a loop in which a variable (let's say it is called "raw") is being changed and written to file every iteration. The variable contains HTML encoded text so it has to be converted into plain text. I found out this can be done using <code>__unescapeHtml</code> function. When I tried using it worked but I ended up always receiving the same text as on the first iteration. Then I learned that I have to use <code>vars.get</code> instead of <code>${}</code> to access a variable. So I changed <code>${__unescapeHtml("${raw}")}</code> to <code>${__unescapeHtml(vars.get("raw")}</code> which kind of helped: <code>vars.get</code> is getting the new value of <code>raw</code> each iteration but <code>__unescapeHtml</code> didn't work at all now - it just returns the encoded text from <code>raw</code>. I didn't succeded finding anything about this exact problem so I'm kind of stuck.</p>