String Handling in ABAP - Removing Unwanted Char

I am importing data from a file and the string data has HTML tags in the description example <FT><H><N>Line Clearance</></></>, how I can programmatically strip the tags away and just leave the text?

The code for this String Handling <FT><H><T> Line Clearance </></></>. 

REPORT zstring. 
DATA : ipstr TYPE string. 
DATA : opstr TYPE string. 
DATA : len TYPE i VALUE 0. 
DATA : ch TYPE char1. 
DATA : num TYPE i VALUE 0.   "No of Characters to be taken 
DATA : pos TYPE char3.       "Position of Char in the Input String 
*Input string 
ipstr = '<FT><H><T> Line Clearance </></></>'. 
*Removing only "</>" 
REPLACE ALL OCCURRENCES OF '</>' IN ipstr WITH ' '. 
*Removing only "<" 
REPLACE ALL OCCURRENCES OF '<' IN ipstr WITH ' '. 
CONDENSE ipstr. 
*Length of Input String 
len = STRLEN( ipstr ). 
  DO len TIMES. 
*Char by Char 
  ch = ipstr+pos(1). 
  pos = pos + 1. 
*Scan each char in input String for ">" 
  FIND '>' IN ch IGNORING CASE. 
  IF sy-subrc = 0. 
    num = len - pos. 
*Output String 
    opstr = ipstr+pos(num). 
  ENDIF. 
ENDDO. 
  WRITE :/ opstr.   
ABAP Tips by :  Sail

ABAP Tips

Fast Links:
Splitting a Single String
Split String into two parts at delimiter

Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Programming, Object, Interview Questions, Certification Reference Books

ABAP Tips
ABAP Forum for Discussion and Samples Program Codes for Abapers

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.