Skip to content

Commit

Permalink
fix: handle style elements with CDATA
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Oct 20, 2019
1 parent 5f3852b commit b3fca84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ export function parse(
error('expected ]]>');
}

children.push(source.slice(i + 7, index));

i = index + 2;
return neutral;
}
Expand Down

0 comments on commit b3fca84

Please sign in to comment.