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
|
|
@ -1173,7 +1173,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
if (query.length) {
|
||||
query = query.toLowerCase();
|
||||
results = Ox.filter(self.options.annotations, function(annotation) {
|
||||
return Ox.decodeHTML(Ox.stripTags(
|
||||
return Ox.decodeHTMLEntities(Ox.stripTags(
|
||||
annotation.text.toLowerCase()
|
||||
)).indexOf(query) > -1;
|
||||
}).map(function(annotation) {
|
||||
|
|
@ -1184,7 +1184,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
};
|
||||
})
|
||||
results = Ox.filter(self.options.annotations, function(annotation) {
|
||||
return Ox.decodeHTML(Ox.stripTags(
|
||||
return Ox.decodeHTMLEntities(Ox.stripTags(
|
||||
annotation.text.toLowerCase()
|
||||
)).indexOf(query) > -1;
|
||||
}).map(function(annotation) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue