Project

General

Profile

Bug #17319 ยป rtehtmlarea_bugfix_5659.patch

Administrator Admin, 2008-02-07 06:27

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (working copy)
HTMLArea.RE_head = /<head>((.|\n)*?)<\/head>/i;
HTMLArea.RE_body = /<body>((.|\n)*?)<\/body>/i;
HTMLArea.Reg_body = new RegExp("<\/?(body)[^>]*>", "gi");
HTMLArea.Reg_entities = new RegExp("&amp;#([0-9]+);", "gi");
HTMLArea.reservedClassNames = /htmlarea/;
HTMLArea.RE_email = /([0-9a-z]+([a-z0-9_-]*[0-9a-z])*){1}(\.[0-9a-z]+([a-z0-9_-]*[0-9a-z])*)*@([0-9a-z]+([a-z0-9_-]*[0-9a-z])*\.)+[a-z]{2,9}/i;
HTMLArea.RE_url = /(https?:\/\/)?(([a-z0-9_]+:[a-z0-9_]+@)?[a-z0-9_-]{2,}(\.[a-z0-9_-]{2,})+\.[a-z]{2,5}(:[0-9]+)?(\/\S+)*)/i;
......
};
HTMLArea.htmlEncode = function(str) {
if (typeof(str) != 'string') str = str.toString(); // we don't need regexp for that, but.. so be it for now.
// Let's not do it twice
//str = HTMLArea.htmlDecode(str);
str = str.replace(/&/g, "&amp;");
str = str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
str = str.replace(/\xA0/g, "&nbsp;"); // Decimal 160, non-breaking-space
str = str.replace(/\x22/g, "&quot;"); // \x22 means '"'
str = str.replace(HTMLArea.Reg_entities, "&$1;"); // keep numeric entities
return str;
};
typo3/sysext/rtehtmlarea/res/proc/pageTSConfig.txt (working copy)
## DO NOT REMAP BOLD AND ITALIC TO STRONG AND EMPHASIS AND VICE VERSA
transformBoldAndItalicTags = 0
## ALLOW TO WRITE ABOUT HTML
dontUndoHSC_db = 1
dontHSC_rte = 1
## CONTENT TO DATABASE
entryHTMLparser_db = 1
entryHTMLparser_db {
    (1-1/1)