Skip to content

Content in Text should be encoded #1

Description

@pekspro

This seems to be a nice little project. I was actually planning to do something similar myself but it doesn’t look necessary :-). I hope this will be added to NuGet.

However, I’m a bit concerned a bit about this line in Text.cs:

sb.Append($">{Content}</text>");

Shouldn’t Content be encoded before it’s added to the string? Characters like < and > could cause problems if they are in Content. I might missing something because I haven’t tried the code myself. Source in TileImage may have the same problem.

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