Question

Bug in StringReplacer

  • 18 November 2016
  • 6 replies
  • 3 views

Badge

Good morning

I'm trying to replace some HTML code characters like (<) using Stringreplacer for a XML text. The strange thing is that not all characters are replaced. Few lines in the middle of the text kept the code character < (please check attached image below)

Any ideas ?

Thank you


6 replies

Userlevel 4

I'm not sure I understand, "&lt;" isn't the same as "<" for the StringReplacer. Is that maybe the case here?

Userlevel 4
Badge +25

I'm with @david_r, if you use an Inspector before the StringReplacer, do you see "<" or "<"?

Badge +16

Agree, try "&alt;" instead or in combination with "<"

Badge

Good morning everyone and thank you very much for your answers.

Using an inspector before the StringReplacer show this result:

Actually as I Said before the StringRepplacer did all the changes in the text except for some few lines.

Thank you very much

Badge

I changed the location of the StringReplacer and this time the result is very good. I have no more of these HTML code characters.

Thank you and best regards.

Badge

May be, use a python caller to search and replace all lines of HTML code.

Reply