Sign in to follow this  
Followers 0
Kidney

getting "&" to show correctly in string

3 posts in this topic

#1 ·  Posted (edited)

So i am making a script that is pretty much functional except for one thing.

The Script is to collect Song, artist and liked status from Pandora and also click the "I'm Still Listening" button after like a hour of playing music

So i got all of those working perfectly and i am very pleased with it.

Unfortunately, i noticed an issue with the ampersand symbol. It displays "&" instead of just the &

here is what it looks like plus the code for collecting and displaying the results:

post-65938-0-52628200-1370563297_thumb.j

Edited by Kidney

Share this post


Link to post
Share on other sites



That's a feature of HTML, where the ampersand is a reserved keyword, so in a web page it is represented as &

The same occurs in XML.

Just do a StringReplace for each instance detected.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

worked like a charm :)

thanks Saint!

post-65938-0-54888000-1370564562_thumb.j

1 person likes this

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0