0

YQL Execute HTML escaping issue

After reading this blog post I was excited to try and get YQL execute to run the Showdown markdown implementation to process the description field on my delicous links.

My problem is that after I call the converter.makeHtml(pdata.items[i].description); in my drewfranklin.com/yql/markdown.xml file I am running into issues with the HTML escaping properly as once I stringify the JSON its takes what I believe is an escaped <\/p> and makes it literally <\/p> causing all sorts of problems when I get the data back into pipes.

Anybody have any reccomendations on how to fix this?

here is the pipe link http://pipes.yahoo.com/pipes/pipe.edit?_id...6cb3fff8be0a34d

by
2 Replies
  • QUOTE (Drew F @ Jul 27 2009, 06:03 PM) <{POST_SNAPBACK}>
    After reading this blog post I was excited to try and get YQL execute to run the Showdown markdown implementation to process the description field on my delicous links.

    My problem is that after I call the converter.makeHtml(pdata.items[i].description); in my drewfranklin.com/yql/markdown.xml file I am running into issues with the HTML escaping properly as once I stringify the JSON its takes what I believe is an escaped <\/p> and makes it literally <\/p> causing all sorts of problems when I get the data back into pipes.

    Anybody have any reccomendations on how to fix this?

    here is the pipe link http://pipes.yahoo.com/pipes/pipe.edit?_id...6cb3fff8be0a34d


    In Pipes I am using a Regex module with the rule
    In [item.description] replace [\\(?=[/"\x00-\x1F])] with [] (omit all outer []s)
    The "g" switch is set. The rule should be applied to any relevant elements.
    This should, I hope, unescape the standard JSON escaping.
    So far I have worked on the basis that the problem lies with Pipes and not YQL.
    0
  • Thank you so much for your help hapdaniel. I was using appjet before and wasn't having escaping problems. I realize now, I think it was something appjet was doing on their end. So I figured it was YQL.

    Thanks once again works great.
    0

Recent Posts

in YQL