1function editorStartTextarea(editor_sequence, content_key, primary_key) { 2 var obj = document.getElementById('editor_'+editor_sequence); 3 var use_html = document.getElementById('htm_'+editor_sequence).value; 4 obj.form.setAttribute('editor_sequence', editor_sequence); 5 6 obj.style.width = '100%'; 7 8 editorRelKeys[editor_sequence] = new Array(); 9 editorRelKeys[editor_sequence]["primary"] = obj.form[primary_key]; 10 editorRelKeys[editor_sequence]["content"] = obj.form[content_key]; 11 editorRelKeys[editor_sequence]["func"] = editorGetContentTextarea; 12 13 var content = obj.form[content_key].value; 14 if(use_html) { 15 content = content.replace(/<br([^>]*)>/ig,"\n"); 16 if(use_html!='br') { 17 content = content.replace(/</g, "<"); 18 content = content.replace(/>/g, ">"); 19 content = content.replace(/"/g, '"'); 20 content = content.replace(/&/g, "&"); 21 } 22 } 23 obj.value = content; 24} 25 26function editorGetContentTextarea(editor_sequence) { 27 var obj = document.getElementById('editor_'+editor_sequence); 28 var use_html = document.getElementById('htm_'+editor_sequence).value; 29 var content = obj.value.trim(); 30 if(use_html) { 31 if(use_html!='br') { 32 content = content.replace(/&/g, "&"); 33 content = content.replace(/</g, "<"); 34 content = content.replace(/>/g, ">"); 35 content = content.replace(/\"/g, """); 36 } 37 content = content.replace(/(\r\n|\n)/g, "<br />"); 38 } 39 return content; 40} 41
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.