Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant