#19294477 XEED의 비표준 XHTML 사용

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7937 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-11-29 09:16:20 +00:00
parent 265d2128d9
commit 4b370d8213

View file

@ -49,10 +49,11 @@ function editorStart_xe(editor_seq, primary_key, content_key, editor_height, col
// standard filters
function plz_standard(code) {
var single_tags = 'img input'.split(' ');
var single_tags = 'area br col hr img input param'.split(' '), replaces = {b:'strong',i:'em'};
code = code.replace(/<(\/)?([A-Za-z0-9:]+)(.*?)(\s*\/?)>/g, function(m0,is_close,tag,attrs,closing){
tag = tag.toLowerCase();
if (replaces[tag]) tag = replaces[tag];
attrs = attrs.replace(/([\w:-]\s*)=(?:([^"' \t\r\n]+)|\s*("[^"]*")|\s*('[^']*'))/g, function(m0,name,m2,m3,m4){
var val = m2||m3||m4;