Skip to content

Problems parsing HTML String with named html entities #4

Description

@amelzer

As the title says, I am having problems with named HTML entities.

Steps to reproduce:

import DOMParser from 'react-native-html-parser';

const html = `<p>Hello world <b>world</b> <i>foo</i> bar hahh&ouml;</p>`;    
const parser = new DOMParser.DOMParser();
const parsed = parser.parseFromString(html, 'text/html');

Expected behaviour:
HTML string gets parsed

Actual behaviour:

domerror kopie

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions