extensions/html-language-features/server/src/modes/embeddedSupport.ts/append
function append(result: string, str: string, n: number): string {
	while (n > 0) {
		if (n & 1) {
			result += str;
		}
		n >>= 1;
		str += str;
	}
	return result;
}