Skip to content

My HTML string Not Render Properly #693

@wolfxpertlab

Description

@wolfxpertlab
"react-native": "0.81.4",
"react-native-render-html": "^6.3.4",

// Description Render Item
const descriptionMemoziedRenderItem = useMemo(
() =>
detail && (
<RenderHTML
baseStyle={{ marginTop: 5, flex: 1 }}
enableCSSInlineProcessing={false}
systemFonts={[FONTS.SEMIBOLD]}
tagsStyles={{
p: { margin: 0 },
ol: { margin: 0, padding: 'auto' },
b: { fontWeight: 'bold' },
i: { fontStyle: 'italic' },
em: { fontStyle: 'italic' },
li: { margin: 0, },
a: {
color: '#0000FF',
textDecorationLine: 'underline',
},
ul: { padding: 'auto', margin: 0 },
u: { textDecorationLine: 'underline' },
img: {
overflow: 'hidden', width: WINDOW.width
}
}}
domVisitors={{ onElement }}
contentWidth={WINDOW.width}
source={{
html: detail?.description

      }}
    />

  ),
[detail]

);

my html string is

New Undeline 


NEW TESTT

  1. its one
  2. its two
  3. now is

    underline


Metadata

Metadata

Assignees

No one assigned

    Labels

    is:missing templateThis issue does not comply with our contribution guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions