mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
#19294477 XEED의 비표준 XHTML 사용
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7937 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
265d2128d9
commit
4b370d8213
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue