Passing the html variable does not alter the result of the function, and the concatenation can be done outside having the same result.