Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get &curren to display literally, not as an HTML entity

Tags:

html

url

php

I'm using php to look at an XML file that has a URL in it. The URLs look something like this:

https://site.com/bacon_report?Id=1&report=1&currentDimension=2&param=1

When I echo out the URLs, the "&curren" shows up as "¤" (AKA #164, A4 or currency symbol) and the links don't work. This happens even though there isn't a closing semicolon for it. What is the cleanest way to make "&curren" display literally?

like image 894
pg. Avatar asked Oct 29 '13 22:10

pg.


People also ask

Will there be a 7th season of how do you get away?

If you're wondering whether this twisty series is renewed for Season 7, sadly, the answer is no. ABC decided Season 6 would be the final season of the show, which means the Season 6 finale was the series finale, and we won't be getting another year of Annalise Keating (Viola Davis).

Where can I watch how do you get away season 8?

Right now you can watch How to Get Away with Murder on Netflix. You are able to stream How to Get Away with Murder by renting or purchasing on Amazon Instant Video, iTunes, Google Play, and Vudu.


1 Answers

Funny enough I ran into the same problem just now and I found this answer. However, I found another solution which might even be better!

Simply put the variable at the beginning of your query string, and you will avoid the &curren completely.

Do:

https://site.com/bacon_report?currentDimension=2&Id=1&report=1&param=1

instead of:

https://site.com/bacon_report?Id=1&report=1&currentDimension=2&param=1
like image 103
Kolja Avatar answered Nov 01 '22 09:11

Kolja