how can i insert the following html lines into jquery? Thanks for the advice/help in advance
<html><head><title>"+ jQuery(".invoice-order-id").text() + "</title>
<link media='all' href='"+posStylesheetUrl+"' type='text/css' rel='stylesheet'>
</head><body>
<div class='invoice-container'><div class='invoice-main-wrapper'>"+jQuery(".invoice-main-wrapper").html()+"</div></div>
</body></html>
How can i insert the above html codes into the below coding, do i need to decode before i encode? The printer actually showing the html code on the paper for var text.
jQuery(".invoice-print-button-container").on("click", function(){
var text = ("test text here for printer"+"more text"+'≪/body></html>');
window.location.href="quickprinter://"+text;
});