You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`uri` | *(experimental)* remote website to parse and render | `string` | Optional
67
74
`decodeEntities` | Decode HTML entities of your content | `bool` | Optional, defaults to `true`
68
75
`imagesMaxWidth` | Resize your images to this maximum width, see [images](#images) | `number` | Optional
76
+
`staticContentMaxWidth` | Set a maximum width to non-responsive content (`<iframe> for instance`) | `number` | Optional
69
77
`imagesInitialDimensions` | Default width and height to display while image's dimensions are being retrieved, see [images](#images) | `{ width: 100, height: 100 }` | Optional
70
-
`onLinkPress` | Fired with the eventand the href as its arguments when tapping a link | `function` | Optional
78
+
`onLinkPress` | Fired with the event, the href and an object with all attributes of the tag as its arguments when tapping a link | `function` | Optional
71
79
`onParsed` | Fired when your HTML content has been parsed. Also useful to tweak your rendering, see [onParsed](#onparsed) | `function` | Optional
72
80
`tagsStyles` | Provide your styles for specific HTML tags, see [styling](#styling) | `object` | Optional
73
81
`classesStyles` | Provide your styles for specific HTML classes, see [styling](#styling) | `object` | Optional
`alterChildren` | Target some specific nested children and change them, see [altering content](#altering-content) | `function` | Optional
84
92
`alterNode` | Target a specific node and change it, see [altering content](#altering-content) | `function` | Optional
85
93
`ignoredTags` | HTML tags you don't want rendered, see [ignoring HTML content](#ignoring-html-content) | `array` | Optional, `['head', 'scripts', ...]`
94
+
`allowedStyles`| Allow render only certain CSS style properties and ignore every other. If you have some property both in `allowedStyles` and `ignoredStyles`, it will be ignored anyway. | `array` | Optional, everything is allowed by default
86
95
`ignoredStyles` | CSS styles from the `style` attribute you don't want rendered, see [ignoring HTML content](#ignoring-html-content) | `array` | Optional
87
96
`ignoreNodesFunction` | Return true in this custom function to ignore nodes very precisely, see [ignoring HTML content](#ignoring-html-content) | `function` | Optional
88
97
`debug` | Prints the parsing result from htmlparser2 and render-html after the initial render | `bool` | Optional, defaults to `false`
0 commit comments