import { stringifyEntities as e } from "../../../stringify-entities/lib/index.js";
//#region ../../node_modules/hast-util-to-html/lib/handle/text.js
var t = ["<", "&"];
function n(n, r, i, a) {
	return i && i.type === "element" && (i.tagName === "script" || i.tagName === "style") ? n.value : e(n.value, Object.assign({}, a.settings.characterReferences, { subset: t }));
}
//#endregion
export { n as text };
