diff --git a/index.js b/index.js index 3ff6b9e8..ddd8669b 100644 --- a/index.js +++ b/index.js @@ -296,14 +296,20 @@ Ox.load(function() { + '([\\w\\$]+)<\\/span>', 'g' ), - function (str) { - return '' + str + ''; + function(match) { + var string = Ox.stripTags(match); + return string == 'Ox.My' ? string + : '' + match + ''; } ], comment: [ /\b(Ox\.[\w\$]+)/g, - '$1' + function(match) { + return match == 'Ox.My' ? match + : '' + match + '' + } ], size: [ /\{size\.(\w+)\}/g,