Skip to content

Commit

Permalink
Added handling for encoded characters
Browse files Browse the repository at this point in the history
 - Replaced encoded newline and ampersand with qualified encoded strings
 - Note that encoded newline must be replaced to carriage return because the ampersand replacement would ruin the encoded character
  • Loading branch information
tbm0115 committed Aug 16, 2024
1 parent 8e7d256 commit c700e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public VisualStudioSummaryInterpreter() : base() { }
/// <inheritdoc />
public override string Interpret(string input)
{
input = input.Replace("<", "&lt;").Replace(">", "&gt;");
input = input.Replace("&#10;", "\r\n").Replace("&", "&amp;").Replace("<", "&lt;").Replace(">", "&gt;");
return base.Interpret(input);
}

Expand Down
2 changes: 1 addition & 1 deletion MtconnectTranspiler/MtconnectTranspiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>MTConnect Transpiler</Title>
<Version>2.4.0-prerelease.5</Version>
<Version>2.4.0-prerelease.6</Version>
<Authors>mtconnect, tbm0115</Authors>
<Company>MTConnect Institute; TAMS;</Company>
<Description>A library capable of parsing an XMI for the MTConnect Standard and passing it to an implemented transpiler.</Description>
Expand Down

0 comments on commit c700e87

Please sign in to comment.