Jump to content
Server Maintenance This Week. ×

substituting lt gt


This topic is 3291 days old. Please don't post here. Open a new topic instead.

Recommended Posts

L.S.,
I guess this should be simple but I seem only to be successful in part.

From I website I get data which in stead of 
<tag> returns &lt;tag&gt;

I wish to replace those &lt; en &gt;  
However a standard substitute does not work. Escaping the & with \& does not work either.

 

Does someone have a solution ?

Link to comment
Share on other sites

a standard substitute does not work.

Not sure what you mean by that. A "standard substitute" like this:

Substitute ( text ; [ "&lt;" ;"<" ] ; [ "&gt;" ; ">" ] )

will return "<tag>" when text contains "&lt;tag&gt;". There are no reserved characters here and nothing to escape.

 

You will probably want to add:

[ "&amp;" ; "&" ]

to that.

 

--
P.S. There's probably a better way to get from the origin to the destination - but you're not showing us the big picture.

Edited by comment
Link to comment
Share on other sites

This topic is 3291 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.