diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js
index 008a7355..a87aaa5c 100644
--- a/js/mzta-chatgpt.js
+++ b/js/mzta-chatgpt.js
@@ -35,9 +35,11 @@ async function chatgpt_getFromDOM(pos) {
strPos = pos.toString().toLowerCase();
let response = '';
if (responseDivs.length) {
- if (/last|final/.test(strPos)) // get last response
+ if (/last|final/.test(strPos)){ // get last response
+ responseDivs[responseDivs.length - 1].innerHTML = responseDivs[responseDivs.length - 1].innerHTML.replace(/<\\/p>/g, '
\\n\\n').replace(/
/g, '
\\n');
response = responseDivs[responseDivs.length - 1].textContent;
- else { // get nth response
+ //console.log('chatgpt_getFromDOM: [HTML] ' + responseDivs[responseDivs.length - 1].innerHTML.replace(/]*>/gi, '').replace(/<\\/div>/gi, '').replace(/