We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tags inside of <title> should be escaped as text on Node.js:
<title>
const parse = require('html-react-parser'); parse('<title><em>text</em></title>');
Output:
{ '$$typeof': Symbol(react.element), type: 'title', key: null, ref: null, props: { children: '<em>text</em>' }, _owner: null, _store: {} }
Tags inside of <title> are parsed as React elements on Node.js:
{ '$$typeof': Symbol(react.element), type: 'title', key: null, ref: null, props: { children: { '$$typeof': Symbol(react.element), type: 'em', key: null, ref: null, props: { children: 'text' }, _owner: null, _store: {} } }, _owner: null, _store: {} }
See above.
Repl.it: https://repl.it/@remarkablemark/html-react-parser-202
The text was updated successfully, but these errors were encountered:
fix: escape tags inside of <title> ([email protected])
07e1055
Fixes #202 html-dom-parser 0.5.0 → 1.0.0 * https://github.com/remarkablemark/html-dom-parser/releases/tag/v1.0.0 * https://github.com/fb55/htmlparser2/releases/tag/v5.0.1
Published v1.1.1:
npm:
npm i [email protected]
Yarn:
yarn add [email protected]
Sorry, something went wrong.
remarkablemark
Successfully merging a pull request may close this issue.
Expected Behavior
Tags inside of
<title>
should be escaped as text on Node.js:Output:
Actual Behavior
Tags inside of
<title>
are parsed as React elements on Node.js:Output:
Steps to Reproduce
See above.
Reproducible Demo
Repl.it: https://repl.it/@remarkablemark/html-react-parser-202
Environment
The text was updated successfully, but these errors were encountered: