forked from 0x2620/oxjs
Ox.parseHTML -> Ox.sanitizeHTML, Ox.encodeHTML -> Ox.encodeHTMLEntities, Ox.decodeHTML -> Ox.decodeHTMLEntities
This commit is contained in:
parent
fef07dff6f
commit
c41afd2f5d
9 changed files with 28 additions and 26 deletions
|
|
@ -820,7 +820,7 @@ Ox.VideoEditor = function(options, self) {
|
|||
if (query.length) {
|
||||
query = query.toLowerCase();
|
||||
results = self.annotations.filter(function(annotation) {
|
||||
return Ox.decodeHTML(Ox.stripTags(
|
||||
return Ox.decodeHTMLEntities(Ox.stripTags(
|
||||
annotation.value.toLowerCase()
|
||||
)).indexOf(query) > -1;
|
||||
});
|
||||
|
|
@ -1010,7 +1010,9 @@ Ox.VideoEditor = function(options, self) {
|
|||
var words = [];
|
||||
Ox.forEach(Ox.count(Ox.words(
|
||||
self.annotations.map(function(annotation) {
|
||||
return Ox.decodeHTML(Ox.stripTags(annotation.value.toLowerCase()));
|
||||
return Ox.decodeHTMLEntities(
|
||||
Ox.stripTags(annotation.value.toLowerCase())
|
||||
);
|
||||
}).join(' ')
|
||||
)), function(count, value) {
|
||||
words.push({count: count, value: value});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue