Skip to content

Macro - replaceEntities Unicode Issue #110

@dazKind

Description

@dazKind

Im running an older Haxe and Neko version and I noticed that HtmlEntities were not correctly written by the macro. "×" was converted to "×" in the generated js-output.

I fixed it locally by adding the classic Utf8.decode in this line https://github.com/massiveinteractive/haxe-react/blob/master/src/lib/react/jsx/JsxParser.hx#L98:
if (map.exists(entity)) result += haxe.Utf8.decode(map.get(entity));

I figure latest Neko does something differently there?

Tested with:
Haxe 3.4.4
neko 2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions