Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Extract HTML content from document View modes: 
User avatar
Member
Member
Guenter - 4/17/2013 7:10:32 AM
   
Extract HTML content from document
Hi,

I want to extract all the HTML content from a document that is finally rendered to the browser programmatically using the API. I use the
TreeNode.DocumentContent.EditableWebParts
to do this. This is fine and I can get the content. The problem is that there are some placeholders I'm not able to resolve, especially something like this:

 { ^youtubevideo|(width)640|(height)385|(rel)True|(loop)False|(autoplay)False|(url)http://www.youtube.com/watch?v=ASO_zypdnsQ|(fs)True^ }


(Please ignore the whitespace)

What can I do to get the resulting HTML code? Macro Resolver does not work for me.

User avatar
Member
Member
kentico_sandroj - 4/27/2013 1:15:26 PM
   
RE:Extract HTML content from document
Hi,

Since this is not really specific to Kentico, there are quite a few sources of information available on this topic:

CodeProject discussion

StackOverflow discussion

Would you mind showing us what you have so far as far as code?