n1concepts Posted September 20, 2013 Share Posted September 20, 2013 (edited) Hi, I have a url where vendor variable is actually $ltid and based on placement in url - see below example - the 'lt' reference is being converted to the 'less than' (>) sign. Is there a way I can not escape this entity so the correct variable is parsed in the link? Example: http://www.domain.com/system/cAPI.php?paid=114<id=121 Note: the '<' is the problem - i need to render that part 'as is' Results: it parses to http://www.domain.com/system/cAPI.php?paid=114&<id=121 '&<' which is the problem, I need '<' to remain 'lt'. Any suggestions appreciated and "no, already asked - vendor can't change $ltid on their end. Thx Edited September 20, 2013 by n1concepts Quote Link to comment Share on other sites More sharing options...
n1concepts Posted September 20, 2013 Author Share Posted September 20, 2013 FYI: I think i figured it out - will script that db field to '<noescape></noescape>' - hopefully, that fix the problem. But welcome any suggestions as i may be wrong - haven't tested yet... Quote Link to comment Share on other sites More sharing options...
JustLikeIcarus Posted September 21, 2013 Share Posted September 21, 2013 When you build the link if you encode "&" as "&" this should no longer be an issue. A lot of people always encode the ampersand to prevent issues such as this. So the link would resemble <a href="http://somesite.com/page.php?var=1<id=1211" />...</a> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.