[PORT] Enable no-jquery/no-parse-html-literal
and fix violation (gitea#31684)
Tested it, path segment creation works just like before. --- Conflict resolution: trivial, also ported code from https://github.com/go-gitea/gitea/pull/31283
This commit is contained in:
parent
22de4ae9c4
commit
2cf91d58e7
4 changed files with 44 additions and 13 deletions
5
web_src/js/utils/dom.test.js
Normal file
5
web_src/js/utils/dom.test.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {createElementFromHTML} from './dom.js';
|
||||
|
||||
test('createElementFromHTML', () => {
|
||||
expect(createElementFromHTML('<a>foo<span>bar</span></a>').outerHTML).toEqual('<a>foo<span>bar</span></a>');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue