mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +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 () => {
|
it('should render regular links', async () => {
|
||||||
await testTransform(
|
await testTransform(
|
||||||
/*eslint-disable quotemark*/
|
|
||||||
'<a href="https://www.dspace.com">DSpace</a>',
|
'<a href="https://www.dspace.com">DSpace</a>',
|
||||||
'<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 () => {
|
it('should not render javascript links', async () => {
|
||||||
await testTransform(
|
await testTransform(
|
||||||
/*eslint-disable quotemark*/
|
|
||||||
'<a href="javascript:window.alert(\'bingo!\');">exploit</a>',
|
'<a href="javascript:window.alert(\'bingo!\');">exploit</a>',
|
||||||
'<a>exploit</a>'
|
'<a>exploit</a>'
|
||||||
/* eslint-enable quotemark */
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user