diff --git a/Directory.Build.props b/Directory.Build.props
index 30d2936..6a208a0 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -11,7 +11,7 @@
https://github.com/squidex/squidex
true
snupkg
- 6.3.6
+ 6.3.7
diff --git a/text/Squidex.Text.Tests/HtmlExtensionsTests.cs b/text/Squidex.Text.Tests/HtmlExtensionsTests.cs
index f39e619..2e6bfc6 100644
--- a/text/Squidex.Text.Tests/HtmlExtensionsTests.cs
+++ b/text/Squidex.Text.Tests/HtmlExtensionsTests.cs
@@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
+using System.Text;
using Xunit;
namespace Squidex.Text;
@@ -61,6 +62,31 @@ public void Should_not_convert_html_with_script_to_text()
Assert.Equal(string.Empty, text);
}
+ [Theory]
+ [InlineData("1 < 2", "1 < 2")]
+ [InlineData("1 &xt; 2", "1 &xt; 2")]
+ [InlineData("1 < 2", "1 < 2")]
+ [InlineData("1 < 2", "1 < 2")]
+ [InlineData("1 &; 2", "1 &; 2")]
+ public void Should_convert_entity(string source, string expected)
+ {
+ var sb = new StringBuilder();
+
+ HtmlEntity.Decode(source, sb);
+
+ Assert.Equal(expected, sb.ToString());
+ }
+
+ [Fact]
+ public void Should_extract_metadata()
+ {
+ var svg = File.ReadAllText(Path.Combine("TestFiles", "SvgValid.svg"));
+
+ var metadata = svg.GetSvgMetadata();
+
+ Assert.Equal(new SvgMetadata("50", "30", "0 0 100 100"), metadata);
+ }
+
private static string BuildText(string text)
{
return text.Replace("\n", Environment.NewLine, StringComparison.Ordinal);
diff --git a/text/Squidex.Text.Tests/TestFiles/SvgValid.svg b/text/Squidex.Text.Tests/TestFiles/SvgValid.svg
index d8cef88..cd2b097 100644
--- a/text/Squidex.Text.Tests/TestFiles/SvgValid.svg
+++ b/text/Squidex.Text.Tests/TestFiles/SvgValid.svg
@@ -1,4 +1,4 @@
-