I need to get XHTML property of my block using ajax.
If I add a different block into RTE, if I call _contentLoader.Get<MyBlock>(id).Description.ToHtmlString(), I get <div class=\"epi-contentfragment\">quote</div> as a part of html string and if I call _contentLoader.Get<MyBlock>(id)?.Description?.ToInternalString() I get "<div data-classid="36f4349b-8093-492b-b616-05d8964e4c89" data-contentguid="e60bf93d-aa76-41ce-af80-670c4b0c48ed" data-contentname="quote">{}</div>".
What is the correct way of getting full correct html (including internal block html) from RTE property in ApiController?
Hi all,
I need to get XHTML property of my block using ajax.
If I add a different block into RTE, if I call
_contentLoader.Get<MyBlock>(id).Description.ToHtmlString(),
I get <div class=\"epi-contentfragment\">quote</div> as a part of html string and if I call
_contentLoader.Get<MyBlock>(id)?.Description?.ToInternalString()
I get "<div data-classid="36f4349b-8093-492b-b616-05d8964e4c89" data-contentguid="e60bf93d-aa76-41ce-af80-670c4b0c48ed" data-contentname="quote">{}</div>".
What is the correct way of getting full correct html (including internal block html) from RTE property in ApiController?