I have tried myself. But there is a problem with my code. It selects characterStyle [NONE]. And add <> symbol before and after of every paragraph style. Actually, I need to insert <> symbol before and after character style applied text (see my First Query).

Your JS code is searching fontStyle defined in variable (styleCodes) whereas I need to search any appliedCharacterStyle in the document. There are lots of character style available in the document. Is there any JS code to achieve this?

I also want to admit that Last year, I bought InDesign javascripting book written by you. It helps me a lot. Its great book for learner.