When I pasted the Purplexity code in the edited html part and hit save I get this message.
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The content of elements must consist of well-formed character data or markup.