Skip to content

Commit

Permalink
fixes html5 attributute error
Browse files Browse the repository at this point in the history
  • Loading branch information
turnermm committed May 1, 2019
1 parent d94bc23 commit c015f21
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin.info.txt
@@ -1,7 +1,7 @@
base ckgedit
author Myron Turner
email turnermm02@shaw.ca
date 2019-04-04
date 2019-05-01
name ckgedit
desc WYSIWYG plugin for Dokuwiki
url https://www.dokuwiki.org/plugin:ckgedit
Expand Down
7 changes: 6 additions & 1 deletion script.js
Expand Up @@ -76,7 +76,12 @@ var HTMLParser_Elements = new Array();
return( '</a>' +sup);
}
);

/* remove html5 attributes */
html = html.replace(/(<\w+)([^>]+)>/gm,function(match,tag,atts){
atts = atts.replace(/data-[\w\-]+\s*=\s*(\"|\')\w+(\"|\')/,"");
//alert(atts);
return tag + atts+ '>';
});
stack.last = function(){
return this[ this.length - 1 ];
};
Expand Down
2 changes: 1 addition & 1 deletion scripts/script-cmpr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion version
@@ -1,2 +1,2 @@
master_19-Apr_04-09_26
html5_err_19-May_01-04_32

0 comments on commit c015f21

Please sign in to comment.