jonkemp / inline-css

Inline css into an html file.
MIT License
429 stars 84 forks source link

Error result when css comment contains `<` #47

Open akuma opened 8 years ago

akuma commented 8 years ago

The example html content:

<style>
/* somebody <somebody@gmail.com> */
.content {
  background: #002b36;
  color: #839496;
}
</style>
<div class="content">Hello!</div>

The error result is:

<style>
/* somebody <somebody@gmail.com> */
.content {
  background: #002b36;
  color: #839496;
}
</somebody@gmail.com></style>
<div class="content">Hello!</div>

The result should be:

<div class="content" style="background: #002b36; color: #839496;">Hello!</div>