COBOL code to replace characters by html entities
问题 I want to replace the characters '<' and '>' by < and > with COBOL. I was wondering about INSPECT statement, but it looks like this statement just can be used to translate one char by another. My intention is to replace all html characters by their html entities. Can anyone figure out some way to do it? Maybe looping over the string and testing each char is the only way? GnuCOBOL or IBM COBOL examples are welcome. My best code is something like it: (http://ideone.com/MKiAc6) IDENTIFICATION