Skip to content

Commit 265acfe

Browse files
committed
refactor: replace react-html-parser with html-react-parser
1 parent 890997b commit 265acfe

File tree

3 files changed

+174
-105
lines changed

3 files changed

+174
-105
lines changed

package-lock.json

Lines changed: 172 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"express-rate-limit": "^7.1.5",
5050
"express-session": "^1.17.1",
5151
"history": "5.3.0",
52+
"html-react-parser": "^5.1.17",
5253
"jsonschema": "^1.4.1",
5354
"load-plugin": "^6.0.0",
5455
"lodash": "^4.17.21",
@@ -63,7 +64,6 @@
6364
"prop-types": "15.8.1",
6465
"react": "^16.13.1",
6566
"react-dom": "^16.13.1",
66-
"react-html-parser": "^2.0.2",
6767
"react-router-dom": "6.26.2",
6868
"uuid": "^10.0.0",
6969
"yargs": "^17.7.2"

src/ui/views/PushDetails/components/Diff.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Diff2Html from 'diff2html';
2-
import ReactHtmlParser from 'react-html-parser';
2+
import ReactHtmlParser from 'html-react-parser';
33

44
export default function Diff(props) {
55
const { diff } = props;

0 commit comments

Comments
 (0)