开发者

How to convert HTML entities to plain text in YQL or Y! Pipes?

I have the source 开发者_StackOverflow社区in html entities (eg: cover) I want to convert them into simple readable plain text (eg: abcdef...)

how can i do that using YQL or Yahoo Pipes? (eg: i want to convert cover into cover using YQL or Yahoo pipes)


Use the following components:

  • A yql stylesheet

select * from xslt where url="//foo.html" and stylesheet="//bar.xsl"

  • An entity declaration

    <!DOCTYPE xsl:stylesheet[
    <!ENTITY 99 "c">
    <!ENTITY 111 "o">
    <!ENTITY 118 "v">
    <!ENTITY 101 "e">
    <!ENTITY 114 "r">
    ]>
    

References

  • XML Entity Definitions for Characters (2nd Edition)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜