jariz / jariz/react-truncate-html

Truncate remove inline styles when dangerouslySetInnerHtml function

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
50
Forks
11
PR merge metrics
No merged PRs in 30d

Description

import Truncate from 'react-truncate-html';
here’s some HTML"
}}
/>

it will remove font-size from strong tag. could you please fix this

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Truncate component and its dangerouslySetInnerHTML path, using the HTML example in the issue to reproduce the missing inline style. Trace how the markup is truncated and confirm that the resulting strong element retains its font-size style without breaking the rendered HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.