Hey I figured out a solution here.
Create Text Display type questions for each possible answer. Build the html blocks as needed. Then instead of the code above that includes the HTML, simply reference the Text Display type question. For example:
{if(howmany == 1, price1.question,'')}
{if(howmany == 2, price2.question,'')}
{if(howmany == 3, price3.question,'')}
{if(howmany == 4, price4.question,'')}
{if(howmany == 5, price5.question,'')}
{if(howmany == 6, price6.question,'')}
{if(howmany == 7, price7.question,'')}
The only problem is that these answers will be displayed in the survey. UNLESS you choose "Yes" under "Always hide this question" found in the Advanced Settings of the question. This hides the question in the survey, but the HTML will still appear in the End Message.
The topic has been locked.