I am trying to output result as html, not text using prompt template. Before it worked, but nowdays, It is not working, I guess this might be related with version.
You could try with new variations of prompt. Since it all depends on LLM. GPT-3 is very bad at following isntructions. Try with GPT3.5 or GPT4, They are much better at following instructions.