2015 Sep 17 2:18 AM
Hi all.
I create a textarea in screen.These texts include HTML labels, for example:
<p> El <strong>Portal del Profesional </strong>abc</p>
he problem is that when I use the FM READ_TEXT to read the text in a report, it returns:
<(><<)>p>El <strong>Portal del Profesional </strong>abc <(><<)>/p><(><<)>p>
And then, the report cannot write the HTML text in the correct format.
Thanks in advance.
Regards.
2015 Sep 17 4:25 AM
Hi Xi ,
Use the below code :
data : p_char type string.
p_char = '<(><<)>p>El <strong>Portal del Profesional </strong>abc <(><<)>/p><(><<)>p>'.
REPLACE ALL OCCURRENCES OF REGEX '<[()]*>' in p_char with space.
REPLACE ALL OCCURRENCES OF REGEX '<[a-zA-Z\/][^>]*>' IN p_char with space.
write : p_char.
Regards-
Vishal
2015 Sep 17 4:25 AM
Hi Xi ,
Use the below code :
data : p_char type string.
p_char = '<(><<)>p>El <strong>Portal del Profesional </strong>abc <(><<)>/p><(><<)>p>'.
REPLACE ALL OCCURRENCES OF REGEX '<[()]*>' in p_char with space.
REPLACE ALL OCCURRENCES OF REGEX '<[a-zA-Z\/][^>]*>' IN p_char with space.
write : p_char.
Regards-
Vishal
2015 Sep 17 5:01 AM
2015 Sep 17 6:22 AM
Hi Vishal,
Only replace it? If only to replace it ,the data line after forcibly will still have problems.
Thanks in advance.
Regards.
Jacky
2015 Sep 17 6:29 AM
Hi Ravi,
Because the system has converted the data format,so i think there should be a way to convert back,not just replace it.For example,the use of FM CONVERT_ITF_TO_STREAM_TEXT to convert the data format,but there will be some special characters show.
Thanks in advance.
Regards.
Jacky
2015 Sep 17 6:46 AM
Hi,
Please use the logic and let me know if any issue.Try to check the same in debugging mode I am sure you able to solve it yourself.
Regards-
Vishal
2015 Sep 18 3:14 AM
Hi Vishal,
Thank u for the answer to my question.
In my needs,it's enough to use the following logic.
REPLACE ALL OCCURRENCES OF REGEX '<[()]*>' in p_char with space.
Thank u very much.
Thanks in advance.
Regards.
Jacky