@@ -221,11 +221,11 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
221221 return (
222222 < div className = "connect-options-container" >
223223 < h3 > { I18n . t ( "applicationConnect.requestMember" ) } </ h3 >
224- < p dangerouslySetInnerHTML = { {
225- __html : I18n . t ( "applicationConnect.memberRequestInfo.info" ,
226- { orgName : currentOrganization . name } )
227- } } />
228- < p dangerouslySetInnerHTML = { { __html : I18n . t ( "applicationConnect.memberRequestInfo.subInfo" ) } } />
224+ < p dangerouslySetInnerHTML = { {
225+ __html : DOMPurify . sanitize ( I18n . t ( "applicationConnect.memberRequestInfo.info" ,
226+ { orgName : currentOrganization . name } ) )
227+ } } />
228+ < p dangerouslySetInnerHTML = { { __html : DOMPurify . sanitize ( I18n . t ( "applicationConnect.memberRequestInfo.subInfo" ) ) } } />
229229 < InputField multiline = { true }
230230 displayLabel = { false }
231231 value = { message }
@@ -460,7 +460,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
460460 < div className = "not-allowed-container" >
461461 < NotAllowedIcon />
462462 < p
463- dangerouslySetInnerHTML = { { __html : I18n . t ( "appAccess.noDecentralAccess" ) } } />
463+ dangerouslySetInnerHTML = { { __html : DOMPurify . sanitize ( I18n . t ( "appAccess.noDecentralAccess" ) ) } } />
464464 </ div >
465465 </ InfoBlock >
466466 </ div >
@@ -609,7 +609,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
609609 : I18n . t ( "applicationDetail.noInformation" ) }
610610 </ span >
611611 < span
612- dangerouslySetInnerHTML = { { __html : I18n . t ( "applicationDetail.wiki" ) } } />
612+ dangerouslySetInnerHTML = { { __html : DOMPurify . sanitize ( I18n . t ( "applicationDetail.wiki" ) ) } } />
613613 </ p >
614614 < p > { I18n . t ( "applicationDetail.contractualInfoOrganization" ,
615615 { name : providerOrganizationName ( I18n . locale , serviceProvider ) } ) } </ p >
@@ -632,7 +632,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
632632 < p className = "info" > { I18n . t ( 'applicationDetail.interfedSource' ) } </ p >
633633 < span
634634 dangerouslySetInnerHTML = { {
635- __html : I18n . t ( 'applicationDetail.registrationInfo' , { url : metaData [ "mdrpi:RegistrationInfo" ] } ) ,
635+ __html : DOMPurify . sanitize ( I18n . t ( 'applicationDetail.registrationInfo' , { url : metaData [ "mdrpi:RegistrationInfo" ] } ) ) ,
636636 } }
637637 />
638638 </ div >
0 commit comments