Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Removing commented code and added [space]/>
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Oct 11, 2009
1 parent 223e2df commit e480122
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Source/MooEditable/MooEditable.js
Expand Up @@ -577,15 +577,9 @@ var MooEditable = new Class({
return match;
});

//make img tags xhtml compatable
// if (this.options.xhtml){
// source = source.replace(/(<(?:img|input)[^/>]*)>/g, '$1 />');
// }


//make img tags xhtml compatible <img>,<img></img> -> <img/>
if (this.options.xhtml){
source = source.replace(/<img([^>]+)(\s*[^\/])>(<\/img>)*/gi, '<img $1$2/>');
source = source.replace(/<img([^>]+)(\s*[^\/])>(<\/img>)*/gi, '<img $1$2 />');
}

//remove double <p> tags and empty <p> tags
Expand Down

0 comments on commit e480122

Please sign in to comment.