I'm using .NET 6 and Blazor WASM. When I paste to textarea normal text, no matter how long or short, it works fine and shows up in variable. However if I paste HTML source code from website (for example this site, or any other), it seems to truncate it from middle if it's longer than thousands of characters. It takes X amount of characters from beginning and end, in the middle it has …. The truncated string is usually around 1000-1200 characters.
I tried extracting the value from textarea-element with vanilla js and it worked completely fine.
NOTE! This did work ~2-3 months ago, I just suddenly noticed it stopped working. I have deployed code similar to this, but on different file. I have not manually updated anything in framework or editor (Visual Studio 2022)
So I have simple code that is something like this:
<form>
<label for="pasteHtml">Paste HTML code here</label>
<textarea @bind="pastedHtml" id="pasteHtml" rows="3"></textarea>
</form>
<button @onclick="ParseHtml"> Parse HTML</button>
@code {
// This is where I have the problem, pastedHtml value is truncated if it contains HTML code..
private string pastedHtml= "";
private void ParseHtml()
{
// Code... etc

