@inject IJSRuntime JS
@inject State State
@inject RestService api
@if(Html != null) {
}
@code {
[Parameter]
public string Url { get; set; }
[Parameter]
public string id { get; set; }
public MarkupString? Html { get; set; }
protected override async Task OnAfterRenderAsync(bool firstRender) {
if(firstRender){
await Reload();
}
}
public async Task Reload() {
// if (Html == null){
Html = await api.GetHtml(Url);
string? HtmlString = Html?.ToString();
HtmlString = HtmlString?.Replace("", "");
HtmlString = HtmlString?.Replace("