forked from 0x2620/oxjs
highlight html strings without breaking tags
This commit is contained in:
parent
fd96423266
commit
9568acd592
2 changed files with 28 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ Ox.Editable = function(options, self) {
|
|||
value = self.options.format(self.options.value)
|
||||
}
|
||||
if (self.options.highlight) {
|
||||
value = Ox.highlight(value, self.options.highlight, 'OxHighlight');
|
||||
value = Ox.highlightHTML(value, self.options.highlight, 'OxHighlight');
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue