mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 02:51:09 +08:00
Rename all test files from JS -> ES6
This commit is contained in:
5
test/javascripts/helpers/html-helper.js
Normal file
5
test/javascripts/helpers/html-helper.js
Normal file
@ -0,0 +1,5 @@
|
||||
export function stringToHTML(string) {
|
||||
const parser = new DOMParser();
|
||||
const doc = parser.parseFromString(string, "text/html");
|
||||
return doc.body.firstChild;
|
||||
}
|
Reference in New Issue
Block a user