File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/bundle/Resources/public/js/scripts Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 155155 previewImg . classList . toggle ( 'd-none' , image === null ) ;
156156 previewAlt . value = image . alternativeText ;
157157 previewActionPreview . setAttribute ( 'href' , destinationLocationUrl ) ;
158- assetNameContainer . innerHTML = destinationContentName ;
158+ assetNameContainer . innerText = destinationContentName ;
159159 assetNameContainer . setAttribute ( 'href' , destinationLocationUrl ) ;
160160
161161 this . inputDestinationContentId . value = destinationContentId ;
Original file line number Diff line number Diff line change 1414 node . insertAdjacentHTML ( position , escapedText ) ;
1515 } ;
1616
17+ const dangerouslyAppend = ( node , nodeOrText ) => {
18+ node . append ( nodeOrText ) ;
19+ } ;
20+
1721 eZ . addConfig ( 'helpers.dom' , {
1822 safelySetInnerHTML,
1923 dangerouslySetInnerHTML,
2024 dangerouslyInsertAdjacentHTML,
25+ dangerouslyAppend,
2126 } ) ;
2227} ) ( window , window . document , window . eZ ) ;
You can’t perform that action at this time.
0 commit comments