2008 Oct 23 5:05 PM
Hi,
I have to read some text from a text editor, that can be formatted for example with Bold, which means that when I execute the function to read its content, it returns something like this:
".
Do you know how can I remove these HTML tags from the text?
Thanks in advance.
Regards,
Sónia Gonçalves
Hi,
I have to read some text from a text editor, that can be formatted for example with Bold, which means that when I execute the function to read its content, it returns something like this:
".
Do you know how can I remove these HTML tags from the text?
Thanks in advance.
Regards,
Sónia Gonçalves
2008 Oct 23 5:25 PM
Hi,
Something like this should do the trick.
report ztag.
data: v_data type char30 value '<H>blablabla</H>'.
if v_data(1) = '<' and
v_data cs '>'.
* Remove the HTML opening header
shift v_data left up to '>'.
shift v_data left.
* Remove the HTML closing header
shift v_data right up to '<'.
shift v_data right.
shift v_data left deleting leading space.
endif.
write: / v_data.Regards,
Darren
2008 Oct 23 5:28 PM
Hi,
I discovered the function "CONVERT_ITF_TO_ASCII" that removes those characters.
Thanks anyway.
Regards,
Sónia Gonçalves
2008 Oct 23 5:31 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |