import { decodeHTML, decodeHTMLAttribute } from 'entities'; import { createElement, Fragment } from 'react'; import { DOCUMENT_NODE, ELEMENT_NODE, parse, TEXT_NODE } from 'ultrahtml'; // ultrahtml keeps character references such as `&` in text and attribute values as written, // and React escapes those strings again, so they are decoded first. Browsers leave references inside // `