Hello
I have created a page that takes several txt inputs and outputs html and javascript code to be copied and pasted by the user into a html capable text area of a document in creation.
when that document in creation is loaded by the user it creates a popup window filled with textual info adjacent to their main content.
Problem: I am able to convert the text in which contains apostrophes to “'” so that they don’t break the code lines but not able to convert them back once the content is finally displayed on the final page.
[CODE]
clnParaOne = txtParaOne.replace(/’/g,’'’);
var output =”//code to output”;
+”var popup=window.open(‘_blank’,”,’width=1280,height=1024,”+marginLeft+”,top=0′);”
the line below is giving me problems:
[CODE]
+”popup.document.write(‘document.getElementById(\’copy\’).textContent.replace("'"\/g,"\’");’);”
[CODE]
+”popup.document.write(‘<body onload="xyZ()">’);”
+”popup.document.write(‘<div class="title">”+txtHeadline+”<\/div>’);”
+”popup.document.write(‘<br>’);”
+”popup.document.write(‘<div id="copy">’);”
+”popup.document.write(‘”+clnParaOne+”‘);”
+”popup.document.write(‘<\/div>’);”
+”popup.document.write(‘<\/body>’);”
+”popup.document.write(‘<\/html>’);”
+”popup.document.close();”
this is for an extremely controlled environment on an isolated intranet so its exclusive to ie 7/8. I know this is a syntax error but i cant find it