encode to base64 before setting as attirbute to fix descriptions containing quotes
This commit is contained in:
parent
f57057e307
commit
45ab5dccca
|
@ -341,7 +341,7 @@ class CCPExecutionForm extends HTMLElement{
|
||||||
"in" : (e,d)=>{ return Object.values(d.inputs) },
|
"in" : (e,d)=>{ return Object.values(d.inputs) },
|
||||||
target : "div",
|
target : "div",
|
||||||
apply : (e,d)=>{
|
apply : (e,d)=>{
|
||||||
e.innerHTML = `<d4s-ccp-input name="${d.id}" input='${JSON.stringify(d)}'></d4s-ccp-input>`
|
e.innerHTML = `<d4s-ccp-input name="${d.id}" input='${btoa(JSON.stringify(d))}'></d4s-ccp-input>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -354,7 +354,7 @@ class CCPExecutionForm extends HTMLElement{
|
||||||
"in" : (e,d)=>{ return Object.values(d.outputs) },
|
"in" : (e,d)=>{ return Object.values(d.outputs) },
|
||||||
target : "div",
|
target : "div",
|
||||||
apply : (e,d)=>{
|
apply : (e,d)=>{
|
||||||
e.innerHTML = `<d4s-ccp-output name="${d.id}" output='${JSON.stringify(d)}'></d4s-ccp-output>`
|
e.innerHTML = `<d4s-ccp-output name="${d.id}" output='${btoa(JSON.stringify(d))}'></d4s-ccp-output>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -7,7 +7,7 @@ class CCPInputWidgetController extends HTMLElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
connectedCallback(){
|
connectedCallback(){
|
||||||
this.#data = JSON.parse(this.getAttribute("input"))
|
this.#data = JSON.parse(atob(this.getAttribute("input")))
|
||||||
|
|
||||||
if(this.isChecklist()){
|
if(this.isChecklist()){
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ class CCPOutputWidgetController extends HTMLElement {
|
||||||
|
|
||||||
constructor(){
|
constructor(){
|
||||||
super()
|
super()
|
||||||
this.#output = JSON.parse(this.getAttribute("output"))
|
this.#output = JSON.parse(atob(this.getAttribute("output")))
|
||||||
}
|
}
|
||||||
|
|
||||||
connectedCallback(){
|
connectedCallback(){
|
||||||
|
|
Loading…
Reference in New Issue