Skip to content

Commit

Permalink
Ensure ReactiveHTML template variables only escapes exact matches (#3279
Browse files Browse the repository at this point in the history
)
  • Loading branch information
philippjfr authored Mar 29, 2022
1 parent 635c5c5 commit 846bd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/models/reactive_html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export class ReactiveHTMLView extends PanelHTMLBoxView {
for (const callback of this.model.callbacks[elname]) {
const [cb, method] = callback;
let definition: string
htm = htm.replaceAll('${'+method, '$--{'+method)
htm = htm.replaceAll('${'+method+'}', '$--{'+method+'}')
if (method.startsWith('script(')) {
const meth = (
method
Expand Down

0 comments on commit 846bd03

Please sign in to comment.