mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
issue #1404, issue #1762, issue #1763 Add support for line breaks, markdown and mathjax in metadata - fix lint issues
This commit is contained in:
@@ -40,19 +40,15 @@ describe('Markdown Pipe', () => {
|
||||
|
||||
it('should render regular links', async () => {
|
||||
await testTransform(
|
||||
/*eslint-disable quotemark*/
|
||||
'<a href="https://www.dspace.com">DSpace</a>',
|
||||
'<a href="https://www.dspace.com">DSpace</a>'
|
||||
/* eslint-enable quotemark */
|
||||
);
|
||||
});
|
||||
|
||||
it('should not render javascript links', async () => {
|
||||
await testTransform(
|
||||
/*eslint-disable quotemark*/
|
||||
'<a href="javascript:window.alert(\'bingo!\');">exploit</a>',
|
||||
'<a>exploit</a>'
|
||||
/* eslint-enable quotemark */
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user