@using Oqtane.Client.Modules.HtmlText.Services @using Oqtane.Modules @using Oqtane.Shared.Modules.HtmlText.Models @using System.Net.Http; @using Oqtane.Client.Modules.Controls @using Oqtane.Shared; @inherits ModuleBase @inject HttpClient http @inject SiteState sitestate @((MarkupString)content)


@functions { string content; protected override async Task OnInitAsync() { HtmlTextService htmltextservice = new HtmlTextService(http, sitestate); List htmltext = await htmltextservice.GetHtmlTextAsync(ModuleState.ModuleId); if (htmltext != null) { content = htmltext.FirstOrDefault().Content; } } }