Posted: 27 Jan 2020 2:11 EST Last activity: 30 Jan 2020 2:18 EST
HTML Code of a section
I want to obtain the HTML code of a section rule on clipboard.
Can anybody please suggest me how can I achieve it?
There is an OOTB activity to get the HTML code but it includes the classes and other rule names which other applications will not understand.
I want to get the raw HTML code of the section.
Requirement is to export this Raw HTML code to an external DB.
1. I do not think this is stored in the clipboard as far as I know.
2. Do you need this at run time (Or) at design time. When you open a section in designer studio, the section details are usually the "RH-1" page in the clipboard. I don't think even this contains the generated HTML.
that's exactly how it's served to the client. The HTML code you see in this local variable IS the same HTML code what is rendering on the client side.
And yes, some meta data attributes in DIVs tag contain that data. Why is it a problem?
BTW, your phrase "These maybe unnecessary for the external applications" looks veeeery weird, at least what it implies. Before that point, I just tried to blindly help you, but now it seems that your requirement either is not correct or you have misunderstanding with your business.
Could you tell me more - what are you tryng to archieve?
Yes you are correct. The requirement was to build sections in Pega and the HTML of the section will be exported to external location, so that the other users can make use of the same attributes of the section that was created in Pega.
The above requirement can be achieved by the OOTB activity you mentioned. As it was having the additional tags so I was wondering if we can remove them and then export.
ok, I'm giving up understanding your requirements :)
just last thing which might be helpful. If you want to remove some tags or attributes from an inline HTML code (or any other string), you could write a wrapper activity around the one mentioned above and make use of the function pxReplaceAllViaRegex