-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
I'm getting the error "[xmldom fatalError] end tag name: p is not match the current start tagName:undefined" while trying to parse an html string
import DOMParser from 'react-native-html-parser';
const parser = new DOMParser.DOMParser();
render(){
const parsed = parser.parseFromString(item.excerpt, 'text/html');
return <Text style={styles.ListItem_brief}>{parsed}...</Text>
}the string being parsed is:
"
Disney Theatrical Productions and Frozen have partnered with The Actors Fund to celebrate International Women’s Day with two special events: “Women’s Day on Broadway: …
<a href="https://thewaltdisneycompany.com/disneys-frozen-partners-actors-fund-celebrate-international-womens-day/\" class="button button-more">Read More</p>\n"
I apologise for the bad pic, the phone doesn't allow screenshots
Metadata
Metadata
Assignees
Labels
No labels
