react-native-htmlview icon indicating copy to clipboard operation
react-native-htmlview copied to clipboard

Extra paragraph added

Open sjaloomconnect opened this issue 5 years ago • 5 comments

I am using this plugin and have added the "addLineBreaks={false}", but somehow when rendering the html output, an extra empty paragraph is added after each paragraph.

I checked the html (just before rendering), and there is no empty paragraph in there.

What to do?

sjaloomconnect avatar Apr 03 '20 17:04 sjaloomconnect

I am using this plugin and have added the "addLineBreaks={false}", but somehow when rendering the html output, an extra empty paragraph is added after each paragraph.

I checked the html (just before rendering), and there is no empty paragraph in there.

What to do?

 Hello! Did you find the solution?

Natkarock avatar May 08 '20 06:05 Natkarock

Hello! I have experienced this as well, have you found the solution yet ?

dangkhoa2708 avatar Jun 12 '20 04:06 dangkhoa2708

With refrerence to this Add props to your HTMLView paragraphBreak=""

Works for me.

dev-pacific22 avatar Jun 23 '20 18:06 dev-pacific22

Tks @dev-pacific22

dnlsilva avatar Jun 24 '20 18:06 dnlsilva

Put your HTML content inside p tag. @sjaloomconnect

const htmlContent = `<p>${_html-content_}</p>`
<HTMLView value={htmlContent} />

alapanerao avatar Jun 30 '20 14:06 alapanerao