Output "quotes" to string?

hello

I am trying to create an xml editor for a portfolio site.

i want to output quotes to a string, but am having problems getting this to work.

for example, i want my string to be example=“image1”
i want the quotes to be part of the string.
i tried using %22 which is the code for quotes, but it just comes up as %22 and not as quotes.

here is my current code

[AS]
trace(attr+" = %22"+nodes*.attributes[attr]+"%22");
[/AS]

thanks for any help.