Get HTML value

Claudio6
Tera Expert

Hi team community.

I'm trying to get html value on html_template fields. I can get for uncomments lines, but I would like to get comments lines as well.

Use case: Template field in sp_ng_template table contents this value:

<!--

<div class='blmWrapper'>
<div style='background-color:#fde11b;color:black;font-size: medium;padding:10px;margin:10px'>

-->

<p>I can get this text</p>

<!--The scheduled maintenance will now happen from 6:00 PM to 11:00 PM Pacific Time on 2/19, and there will be some slowness during this time. -->

 

so, if I want to get the value for the Template field, I just got "I can get this text", and I want to get all the text.

I tried using getValue(), getDisplayValue, and getHTMLValue(). None of them work. How could I retrieve all the text?

 

Thanks.

Claudio.