Skip to content

honeo/parse-html-df

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parse-html-df

なにこれ

HTML string -> documentFragment

使い方

$ npm i parse-html-df
import parseHTML from 'parse-html-df';

// or dynamic-import, CDN
const {default: parseHTML} = await import('https://cdn.rawgit.com/honeo/parse-html-df/master/index.mjs');


const df = parseHTML('hoge<div class="fuga"><span class="piyo">foobar</span></div>');
document.body.append(df);
<body>
	...
	"hoge"
	<div class="fuga">
		<span class="piyo">foobar</span>
	</div>
<body>

About

string -> documentFragment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published