You ever just want to quickly throw a prototype webpage together, only to realize, you have a lot of unnecessary placeholder text in your HTML? Me neither.
Just include the file in your page:
<script src="https://cdn.rawgit.com/RazorSh4rk/lorem-inject/72c07c26/lorem.min.js"></script>
Or use npm:
npm install lorem-inject
And you are set to replace blocks of text with these:
<lorem></lorem>
<lorem />
<lorem length="1" /> <!-- or "short" for 1 paragraph -->
<lorem length="2" /> <!-- or "medium" for 2 paragraphs -->
<lorem length="3" /> <!-- or "long" for 3 paragraphs -->
<lorem length="420"><lorem> <!-- for exactly 420 characters -->
<!-- use <lorem></lorem> when it's not nested inside any DOM elements -->