_blank attribute value getting stripped in custom Content Type

I have a custom content type saving HTML Content.  When I try set the attribute value to _blank, it saves in the actual HTML, but when rendered it gets stripped.  I am running my content through this method.

public string ParseHtmlContent(string html)
{
      return PublicApi.Html.Events.OnRender("Generic", html, "web");
}

Parents Reply
  • I'm not able to reproduce this issue.  Just using an OOTB install, you can create a status message or some other content and insert an internal link that will open in a new window.  This will insert the target="_blank" tag and it's not getting stripped. 

    Is this with version 10.3.0.5977?  Do you have any custom plugins listening to the IHtml render events?

    Also, you should update your call as PublicApi should no longer be used.  Instead use Apis.Get<IHtml>().Events.OnRender

Children