Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Escaping Html is not working. #45

Open
gparissis opened this issue Dec 13, 2021 · 0 comments
Open

Escaping Html is not working. #45

gparissis opened this issue Dec 13, 2021 · 0 comments

Comments

@gparissis
Copy link

I am trying to escape Html but it is not working and I wonder why.
I am using ASP.Net Core 6 and I have set up the configuration to allow Escape of Html string.

    ToasterConfiguration configuration = new();
    configuration.ShowTransitionDuration = 500;
    configuration.HideTransitionDuration = 500;
    configuration.EscapeHtml = false;
    configuration.NewestOnTop = true;
    configuration.ShowProgressBar = false;
    configuration.PreventDuplicates = false;

    
    services.AddToaster(configuration);

But when I write the below as the message
"Hello <br/> there!"
On the browser, I see the exact same string and not two lines as expected.

I have tested the functionality on the https://blazor-toaster.sotsera.com/ website and there it works. So there must be something on my side that is causing the problem, but I can't think of anything. Does anyone have an idea why is this happening, or under which conditions it may happen?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant