I have a dcr having a Visual Format Data node. I am using inner_xml function on another node of the same XML and retreiving the modified XML by get_dcr function before writing out the final dcr. However, get_dcr function usage produces unwanted results for the Visual Format data e.g.Data before calling get_dcr result:<item name="abc"><value> <b >This <b/> is a test <a href="test" /></value></item>Data after calling get_dcr result:<item name="abc"><value> <b>This <b/> is a test <a href="test" /></value></item>The above example shows that the ">" is transformed as ">" for some reason in the resultant XML although the < remains unchanged. Is there a way to fix that? If not, does anyone know an efficient regex to fix that in the given node?
The dcr seems to break due to those unwanted ">". I am calling the get_dcr method after making the changes by calling the inner_xml. I can suppress the ">" with the following:encode_entities($input, '>')but the issue would be how to get to that node and make change without calling get_dcr or similar method. If I do the regex substitution in the resultant xml, it can possibly change a whole lot more while the encode_entities has to have the correct string passed to it which means that I have to access th VF node, change it and put it back in the xml without calling any method that may change it back.