File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
import type { ArticleFormat } from '../lib/articleFormat' ;
2
- import { sanitiseHTML } from '../model/sanitise' ;
3
2
import { Caption } from './Caption' ;
4
3
import { MaintainAspectRatio } from './MaintainAspectRatio' ;
5
4
@@ -28,7 +27,6 @@ export const VideoAtom = ({
28
27
width = 460 ,
29
28
} : Props ) => {
30
29
if ( assets . length === 0 ) return null ; // Handle empty assets array
31
- const santisedUrl = sanitiseHTML ( assets [ 0 ] ?. url ?? '' ) ;
32
30
return (
33
31
< >
34
32
< MaintainAspectRatio
@@ -47,13 +45,13 @@ export const VideoAtom = ({
47
45
{ assets . map ( ( asset , index ) => (
48
46
< source
49
47
key = { index }
50
- src = { santisedUrl }
48
+ src = { asset . url }
51
49
type = { asset . mimeType }
52
50
/>
53
51
) ) }
54
52
< p >
55
53
{ `Your browser doesn't support HTML5 video. Here is a ` }
56
- < a href = { santisedUrl } > link to the video</ a > instead.
54
+ < a href = { assets [ 0 ] ?. url } > link to the video</ a > instead.
57
55
</ p >
58
56
</ video >
59
57
</ MaintainAspectRatio >
You can’t perform that action at this time.
0 commit comments