You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@any23.apache.org by "S.L" <si...@gmail.com> on 2013/10/20 17:16:51 UTC

Foaf:Depiction Values in Any23 getting transformed.

I am parsing the below URL and Iam interested in the foaf:depiction

http://www.kmart.com/canon-eos-rebel-t3i-18-55mm-is-ii/p-00339693000P?prdNo=1&blockNo=1&blockType=G1

The foaf:depcition I get is the following

http://s.shld.net/is/image/Sears/http://c.shld.net/rpx/i/s/i/spin/image/spin_prod_ec_463043901?hei=&wid=&op_sharpen=&resMode=sharp&op_usm=0.9,0.5,0,0

However from the HTML markup the foaf:depiction is

http://s.shld.net/is/image/Sears/http://c.shld.net/rpx/i/s/i/spin/image/spin_prod_ec_463043901?hei=&amp;wid=&amp;op_sharpen=&amp;resMode=sharp&amp;op_usm=0.9,0.5,0,0

Looks like the foafdepiction URL is getting transformed in the Any23
parsing , I am using the latest Any23 trunk code .

The & is getting replaced with  &amp;

Please advise.

Re: Foaf:Depiction Values in Any23 getting transformed.

Posted by Nick Kew <ni...@apache.org>.
On 20 Oct 2013, at 16:16, S.L wrote:

> The & is getting replaced with  &amp;

If that's in a markup context (such as HTML or XML) that's necessary
escaping.

On 22 Oct 2013, at 05:25, S.L wrote:

> For any URL that contains a space character

An unescaped space can't appear in a URL!

Maybe you need to learn about URL escaping and HTML escaping.
What you see in your browser is not something you can process.

-- 
Nick Kew