@inject IJSRuntime JS
@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){
RestService api = new RestService();
Html = await api.GetHtml(Url);
string? HtmlString = Html?.ToString();
HtmlString = HtmlString?.Replace("", "");
HtmlString = HtmlString?.Replace("